aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_utils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-07 18:19:22 +0100
committerMax Kellermann <max@duempel.org>2009-01-07 18:19:22 +0100
commit8b19c74e8eb0036c697010d56ed1ee9b92facb72 (patch)
tree59a9009f9e43d8383007deb8c478da214727e373 /src/pcm_utils.c
parentdf30a29391b8a869667139f62955cf794c7d27c2 (diff)
downloadmpd-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 '')
-rw-r--r--src/pcm_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm_utils.c b/src/pcm_utils.c
index 3e66edef2..69add6073 100644
--- a/src/pcm_utils.c
+++ b/src/pcm_utils.c
@@ -51,7 +51,7 @@ pcm_convert_16(const struct audio_format *src_format,
assert(dest_format->bits == 16);
- buf = pcm_convert_to_16(state, src_format->bits,
+ buf = pcm_convert_to_16(&state->dither, src_format->bits,
src_buffer, src_size, &len);
if (!buf)
g_error("pcm_convert_to_16() failed");