pcm/Dsd2Pcm: use SampleTraits<SampleFormat::DSD>::SILENCE
This commit is contained in:
parent
302a571367
commit
7a1b996da9
@ -172,14 +172,9 @@ void
|
|||||||
Dsd2Pcm::Reset() noexcept
|
Dsd2Pcm::Reset() noexcept
|
||||||
{
|
{
|
||||||
/* my favorite silence pattern */
|
/* my favorite silence pattern */
|
||||||
fifo.fill(0x69);
|
fifo.fill(SampleTraits<SampleFormat::DSD>::SILENCE);
|
||||||
|
|
||||||
fifopos = 0;
|
fifopos = 0;
|
||||||
/* 0x69 = 01101001
|
|
||||||
* This pattern "on repeat" makes a low energy 352.8 kHz tone
|
|
||||||
* and a high energy 1.0584 MHz tone which should be filtered
|
|
||||||
* out completely by any playback system --> silence
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void
|
inline void
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
// Copyright The Music Player Daemon Project
|
// Copyright The Music Player Daemon Project
|
||||||
|
|
||||||
#ifndef MPD_PCM_TRAITS_HXX
|
#pragma once
|
||||||
#define MPD_PCM_TRAITS_HXX
|
|
||||||
|
|
||||||
#include "SampleFormat.hxx"
|
#include "SampleFormat.hxx"
|
||||||
|
|
||||||
@ -150,7 +149,10 @@ struct SampleTraits<SampleFormat::DSD> {
|
|||||||
|
|
||||||
static constexpr size_t SAMPLE_SIZE = sizeof(value_type);
|
static constexpr size_t SAMPLE_SIZE = sizeof(value_type);
|
||||||
|
|
||||||
|
/* 0x69 = 01101001
|
||||||
|
* This pattern "on repeat" makes a low energy 352.8 kHz tone
|
||||||
|
* and a high energy 1.0584 MHz tone which should be filtered
|
||||||
|
* out completely by any playback system --> silence
|
||||||
|
*/
|
||||||
static constexpr value_type SILENCE = 0x69;
|
static constexpr value_type SILENCE = 0x69;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user