PlayerThread: use PcmSilence() in SendSilence()
No change for regular PCM, but DSD uses 0x69 now.
This commit is contained in:
parent
b8097eaf2e
commit
104075f3e0
1
NEWS
1
NEWS
@ -1,6 +1,7 @@
|
|||||||
ver 0.19.17 (not yet released)
|
ver 0.19.17 (not yet released)
|
||||||
* fix spurious seek error "Failed to allocate silence buffer"
|
* fix spurious seek error "Failed to allocate silence buffer"
|
||||||
* replay gain: fix "replay_gain_handler mixer" setting
|
* replay gain: fix "replay_gain_handler mixer" setting
|
||||||
|
* DSD: use 0x69 as silence pattern
|
||||||
|
|
||||||
ver 0.19.16 (2016/06/13)
|
ver 0.19.16 (2016/06/13)
|
||||||
* faster seeking
|
* faster seeking
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "MusicPipe.hxx"
|
#include "MusicPipe.hxx"
|
||||||
#include "MusicBuffer.hxx"
|
#include "MusicBuffer.hxx"
|
||||||
#include "MusicChunk.hxx"
|
#include "MusicChunk.hxx"
|
||||||
|
#include "pcm/Silence.hxx"
|
||||||
#include "DetachedSong.hxx"
|
#include "DetachedSong.hxx"
|
||||||
#include "system/FatalError.hxx"
|
#include "system/FatalError.hxx"
|
||||||
#include "CrossFade.hxx"
|
#include "CrossFade.hxx"
|
||||||
@ -505,7 +506,7 @@ Player::SendSilence()
|
|||||||
|
|
||||||
chunk->time = SignedSongTime::Negative(); /* undefined time stamp */
|
chunk->time = SignedSongTime::Negative(); /* undefined time stamp */
|
||||||
chunk->length = num_frames * frame_size;
|
chunk->length = num_frames * frame_size;
|
||||||
memset(chunk->data, 0, chunk->length);
|
PcmSilence({chunk->data, chunk->length}, play_audio_format.format);
|
||||||
|
|
||||||
Error error;
|
Error error;
|
||||||
if (!pc.outputs.Play(chunk, error)) {
|
if (!pc.outputs.Play(chunk, error)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user