Commit ba8e579e authored by Max Kellermann's avatar Max Kellermann

pcm/Volume: use 0x69 to generate DSD silence

parent 072e39c9
......@@ -134,9 +134,11 @@ PcmVolume::Apply(ConstBuffer<void> src)
if (volume == 0) {
/* optimized special case: 0% volume = memset(0) */
/* TODO: is this valid for all sample formats? What
about floating point? */
memset(data, 0, src.size);
uint8_t pattern = 0;
if (format == SampleFormat::DSD)
pattern = 0x69;
memset(data, pattern, src.size);
return { data, src.size };
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment