mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-01 02:11:47 +02:00
fixed buffer size
This commit is contained in:
parent
474f1dd86f
commit
9e67b2ffe2
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ void OpenslPlayer::initOpensl()
|
|||
|
||||
frames_ = 1920;//960;//rate / 50; // => 50ms
|
||||
|
||||
buff_size = frames_ * format.channels * 2 /* 2 -> sample size */;
|
||||
buff_size = frames_ * format.frameSize /* 2 -> sample size */;
|
||||
logO << "frames: " << frames_ << ", channels: " << format.channels << ", rate: " << format.rate << ", buff: " << buff_size << "\n";
|
||||
|
||||
SLresult result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue