mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-06 10:09:33 +02:00
on connect: assign correct stream to client
This commit is contained in:
parent
07d76f365f
commit
a4e501c960
5 changed files with 34 additions and 63 deletions
|
@ -68,7 +68,9 @@ void SampleFormat::setFormat(const std::string& format)
|
|||
|
||||
void SampleFormat::setFormat(uint32_t rate, uint16_t bits, uint16_t channels)
|
||||
{
|
||||
//needs something like: 24_3 = 3 bytes, 24 = 4 bytes
|
||||
//needs something like:
|
||||
// 24_4 = 3 bytes, padded to 4
|
||||
// 32 = 4 bytes
|
||||
this->rate = rate;
|
||||
this->bits = bits;
|
||||
this->channels = channels;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue