diff options
author | Max Kellermann <max@duempel.org> | 2013-12-28 17:42:03 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-28 18:30:27 +0100 |
commit | da29298d4dbe8dddade7cf241dd1af267470f2a8 (patch) | |
tree | 4cbb96c50418ce5d1dad66db9a946b1ba0a259aa /src/pcm/PcmMix.hxx | |
parent | afcf0795c44260f54e74ec854297de439e7562c3 (diff) | |
download | mpd-da29298d4dbe8dddade7cf241dd1af267470f2a8.tar.gz mpd-da29298d4dbe8dddade7cf241dd1af267470f2a8.tar.xz mpd-da29298d4dbe8dddade7cf241dd1af267470f2a8.zip |
pcm/PcmMix: improved dithering
Use the existing PcmDither library.
Diffstat (limited to 'src/pcm/PcmMix.hxx')
-rw-r--r-- | src/pcm/PcmMix.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pcm/PcmMix.hxx b/src/pcm/PcmMix.hxx index 637c88f8a..a6657a979 100644 --- a/src/pcm/PcmMix.hxx +++ b/src/pcm/PcmMix.hxx @@ -25,6 +25,8 @@ #include <stddef.h> +class PcmDither; + /* * Linearly mixes two PCM buffers. Both must have the same length and * the same audio format. The formula is: @@ -44,7 +46,7 @@ */ gcc_warn_unused_result bool -pcm_mix(void *buffer1, const void *buffer2, size_t size, +pcm_mix(PcmDither &dither, void *buffer1, const void *buffer2, size_t size, SampleFormat format, float portion1); #endif |