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