PlayerThread: use PcmSilence() in SendSilence()

No change for regular PCM, but DSD uses 0x69 now.
This commit is contained in:
Max Kellermann 2016-07-05 17:55:59 +02:00
parent b8097eaf2e
commit 104075f3e0
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -1,6 +1,7 @@
ver 0.19.17 (not yet released)
* fix spurious seek error "Failed to allocate silence buffer"
* replay gain: fix "replay_gain_handler mixer" setting
* DSD: use 0x69 as silence pattern
ver 0.19.16 (2016/06/13)
* faster seeking

View File

@ -25,6 +25,7 @@
#include "MusicPipe.hxx"
#include "MusicBuffer.hxx"
#include "MusicChunk.hxx"
#include "pcm/Silence.hxx"
#include "DetachedSong.hxx"
#include "system/FatalError.hxx"
#include "CrossFade.hxx"
@ -505,7 +506,7 @@ Player::SendSilence()
chunk->time = SignedSongTime::Negative(); /* undefined time stamp */
chunk->length = num_frames * frame_size;
memset(chunk->data, 0, chunk->length);
PcmSilence({chunk->data, chunk->length}, play_audio_format.format);
Error error;
if (!pc.outputs.Play(chunk, error)) {