From da29298d4dbe8dddade7cf241dd1af267470f2a8 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Sat, 28 Dec 2013 17:42:03 +0100
Subject: pcm/PcmMix: improved dithering

Use the existing PcmDither library.
---
 src/pcm/PcmMix.hxx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/pcm/PcmMix.hxx')

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
-- 
cgit v1.2.3