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) ...@@ -134,9 +134,11 @@ PcmVolume::Apply(ConstBuffer<void> src)
if (volume == 0) { if (volume == 0) {
/* optimized special case: 0% volume = memset(0) */ /* optimized special case: 0% volume = memset(0) */
/* TODO: is this valid for all sample formats? What uint8_t pattern = 0;
about floating point? */ if (format == SampleFormat::DSD)
memset(data, 0, src.size); pattern = 0x69;
memset(data, pattern, src.size);
return { data, 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