diff options
author | Max Kellermann <max@duempel.org> | 2009-01-07 18:19:22 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-07 18:19:22 +0100 |
commit | 8b19c74e8eb0036c697010d56ed1ee9b92facb72 (patch) | |
tree | 59a9009f9e43d8383007deb8c478da214727e373 /src/pcm_format.c | |
parent | df30a29391b8a869667139f62955cf794c7d27c2 (diff) | |
download | mpd-8b19c74e8eb0036c697010d56ed1ee9b92facb72.tar.gz mpd-8b19c74e8eb0036c697010d56ed1ee9b92facb72.tar.xz mpd-8b19c74e8eb0036c697010d56ed1ee9b92facb72.zip |
pcm_format: pass struct pcm_dither_24 to pcm_convert_to_16()
The function does not need the full pcm_convert_state struct.
Diffstat (limited to 'src/pcm_format.c')
-rw-r--r-- | src/pcm_format.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pcm_format.c b/src/pcm_format.c index 9e6f42265..16d9673d4 100644 --- a/src/pcm_format.c +++ b/src/pcm_format.c @@ -17,7 +17,7 @@ */ #include "pcm_format.h" -#include "pcm_utils.h" +#include "pcm_dither.h" #include <glib.h> @@ -40,7 +40,7 @@ pcm_convert_24_to_16(struct pcm_dither_24 *dither, } const int16_t * -pcm_convert_to_16(struct pcm_convert_state *convert, +pcm_convert_to_16(struct pcm_dither_24 *dither, uint8_t bits, const void *src, size_t src_size, size_t *dest_size_r) { @@ -74,7 +74,7 @@ pcm_convert_to_16(struct pcm_convert_state *convert, buf = g_realloc(buf, len); } - pcm_convert_24_to_16(&convert->dither, + pcm_convert_24_to_16(dither, (int16_t *)buf, (const int32_t *)src, num_samples); |