aboutsummaryrefslogtreecommitdiff
path: root/src/PcmConvert.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-31 22:43:28 +0100
committerMax Kellermann <max@duempel.org>2013-01-31 22:54:10 +0100
commitf2491c88c86707cc35c7dfc30a1b5a0a29886540 (patch)
treed7b2079f3122aa486b8717c916b596c421944f82 /src/PcmConvert.cxx
parent1b175025fecb1c10e6719d4ab79c188d473fccc4 (diff)
PcmDither: convert struct to a class
Diffstat (limited to 'src/PcmConvert.cxx')
-rw-r--r--src/PcmConvert.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PcmConvert.cxx b/src/PcmConvert.cxx
index ed260d07..9618b964 100644
--- a/src/PcmConvert.cxx
+++ b/src/PcmConvert.cxx
@@ -38,7 +38,6 @@ PcmConvert::PcmConvert()
pcm_dsd_init(&dsd);
pcm_resample_init(&resample);
- pcm_dither_24_init(&dither);
pcm_buffer_init(&format_buffer);
pcm_buffer_init(&channels_buffer);
@@ -71,7 +70,7 @@ PcmConvert::Convert16(const audio_format *src_format,
assert(dest_format->format == SAMPLE_FORMAT_S16);
- buf = pcm_convert_to_16(&format_buffer, &dither,
+ buf = pcm_convert_to_16(&format_buffer, dither,
sample_format(src_format->format),
src_buffer, src_size,
&len);