mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-31 18:06:15 +02:00
less logging
This commit is contained in:
parent
4affe8554a
commit
5d27097877
2 changed files with 6 additions and 3 deletions
|
@ -94,11 +94,13 @@ void OpenslPlayer::playerCallback(SLAndroidSimpleBufferQueueItf bq)
|
|||
chronos::usec delay(50 * 1000);
|
||||
if (!pubStream_->getPlayerChunk(buffer[curBuffer], delay, frames_))
|
||||
{
|
||||
logO << "Failed to get chunk. Playing silence.\n";
|
||||
// logO << "Failed to get chunk. Playing silence.\n";
|
||||
memset(buffer[curBuffer], 0, buff_size);
|
||||
}
|
||||
|
||||
adjustVolume(buffer[curBuffer], frames_);
|
||||
else
|
||||
{
|
||||
adjustVolume(buffer[curBuffer], frames_);
|
||||
}
|
||||
|
||||
while (active_)
|
||||
{
|
||||
|
@ -232,6 +234,7 @@ void OpenslPlayer::initOpensl()
|
|||
//// audioCallback(buffer[curBuffer], framesPerBuffer);
|
||||
active_ = true;
|
||||
|
||||
memset(buffer[curBuffer], 0, buff_size);
|
||||
result = (*bqPlayerBufferQueue)->Enqueue(bqPlayerBufferQueue, buffer[curBuffer], sizeof(buffer[curBuffer]));
|
||||
if (SL_RESULT_SUCCESS != result)
|
||||
throw SnapException("SL_RESULT_SUCCESS != result");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue