mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-20 20:46:16 +02:00
configurable pipe read buffer
This commit is contained in:
parent
2756ec4897
commit
239e93de43
8 changed files with 39 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue