on connect: assign correct stream to client

This commit is contained in:
badaix 2016-02-08 13:30:37 +01:00
parent 07d76f365f
commit a4e501c960
5 changed files with 34 additions and 63 deletions

View file

@ -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;