MusicChunk: add magic value IGNORE_REPLAY_GAIN
This fixes spurious replay gain logs when the player inserts silence chunks, because those silence chunks had no replay gain attached, resetting the ReplayGainFilter state, flipping it forth and back.
This commit is contained in:
@@ -561,7 +561,7 @@ Player::SendSilence()
|
||||
chunk->bit_rate = 0;
|
||||
chunk->time = SignedSongTime::Negative(); /* undefined time stamp */
|
||||
chunk->length = num_frames * frame_size;
|
||||
chunk->replay_gain_serial = 0;
|
||||
chunk->replay_gain_serial = MusicChunk::IGNORE_REPLAY_GAIN;
|
||||
PcmSilence({chunk->data, chunk->length}, play_audio_format.format);
|
||||
|
||||
try {
|
||||
|
Reference in New Issue
Block a user