From 0078837a9760b8b5a14c87af0cb44a107462db7b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Oct 2008 16:58:07 +0200 Subject: pcm_dither: added generic 24 to 16 bit dithering Copied and adapted code from the mp3 decoder plugin. This library now replaces the old and low-quality function pcm_convert_24_to_16(). --- src/pcm_utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pcm_utils.h') diff --git a/src/pcm_utils.h b/src/pcm_utils.h index 3fc15e8b7..835ba187f 100644 --- a/src/pcm_utils.h +++ b/src/pcm_utils.h @@ -20,6 +20,7 @@ #define PCM_UTILS_H #include "../config.h" +#include "pcm_dither.h" #include #include @@ -40,6 +41,9 @@ struct pcm_convert_state { uint32_t lastInSampleRate; uint32_t lastOutSampleRate; #endif + + struct pcm_dither_24 dither; + /* Strict C99 doesn't allow empty structs */ int error; }; -- cgit v1.2.3