Skip to content

Commit

Permalink
Fix noise when paused
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Feb 3, 2021
1 parent 3b50f7a commit c342b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/player/pulse_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void PulsePlayer::writeCallback(pa_stream* stream, size_t nbytes)
if (!stream_->getPlayerChunk(buffer_.data(), std::chrono::microseconds(usec), numFrames))
{
// LOG(INFO, LOG_TAG) << "Failed to get chunk. Playing silence.\n";
memset(buffer_.data(), 0, numFrames);
memset(buffer_.data(), 0, buffer_.size());
}
else
{
Expand Down

0 comments on commit c342b15

Please sign in to comment.