aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputThread.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-28 17:42:03 +0100
committerMax Kellermann <max@duempel.org>2013-12-28 18:30:27 +0100
commitda29298d4dbe8dddade7cf241dd1af267470f2a8 (patch)
tree4cbb96c50418ce5d1dad66db9a946b1ba0a259aa /src/OutputThread.cxx
parentafcf0795c44260f54e74ec854297de439e7562c3 (diff)
downloadmpd-da29298d4dbe8dddade7cf241dd1af267470f2a8.tar.gz
mpd-da29298d4dbe8dddade7cf241dd1af267470f2a8.tar.xz
mpd-da29298d4dbe8dddade7cf241dd1af267470f2a8.zip
pcm/PcmMix: improved dithering
Use the existing PcmDither library.
Diffstat (limited to 'src/OutputThread.cxx')
-rw-r--r--src/OutputThread.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OutputThread.cxx b/src/OutputThread.cxx
index 1a8c70196..62833e360 100644
--- a/src/OutputThread.cxx
+++ b/src/OutputThread.cxx
@@ -392,7 +392,7 @@ ao_filter_chunk(struct audio_output *ao, const struct music_chunk *chunk,
void *dest = ao->cross_fade_buffer.Get(other_length);
memcpy(dest, other_data, other_length);
- if (!pcm_mix(dest, data, length,
+ if (!pcm_mix(ao->cross_fade_dither, dest, data, length,
ao->in_audio_format.format,
1.0 - chunk->mix_ratio)) {
FormatError(output_domain,