configurable pipe read buffer

This commit is contained in:
badaix 2015-08-15 11:22:41 +02:00
parent 2756ec4897
commit 239e93de43
8 changed files with 39 additions and 16 deletions

View file

@ -23,8 +23,11 @@
#include "sampleFormat.h"
#include "common/log.h"
#include <sstream>
using namespace std;
namespace msg
{
@ -45,6 +48,14 @@ SampleFormat::SampleFormat(uint32_t sampleRate, uint16_t bitsPerSample, uint16_t
}
string SampleFormat::getFormat() const
{
stringstream ss;
ss << rate << ":" << bits << ":" << channels;
return ss.str();
}
void SampleFormat::setFormat(const std::string& format)
{
std::vector<std::string> strs;