mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-04 11:51:44 +02:00
Fix noise when paused
This commit is contained in:
parent
3b50f7a1ad
commit
c342b15a61
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ void PulsePlayer::writeCallback(pa_stream* stream, size_t nbytes)
|
||||||
if (!stream_->getPlayerChunk(buffer_.data(), std::chrono::microseconds(usec), numFrames))
|
if (!stream_->getPlayerChunk(buffer_.data(), std::chrono::microseconds(usec), numFrames))
|
||||||
{
|
{
|
||||||
// LOG(INFO, LOG_TAG) << "Failed to get chunk. Playing silence.\n";
|
// LOG(INFO, LOG_TAG) << "Failed to get chunk. Playing silence.\n";
|
||||||
memset(buffer_.data(), 0, numFrames);
|
memset(buffer_.data(), 0, buffer_.size());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue