diff options
author | Max Kellermann <max@duempel.org> | 2013-01-31 22:43:28 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-31 22:54:10 +0100 |
commit | f2491c88c86707cc35c7dfc30a1b5a0a29886540 (patch) | |
tree | d7b2079f3122aa486b8717c916b596c421944f82 /src/PcmConvert.cxx | |
parent | 1b175025fecb1c10e6719d4ab79c188d473fccc4 (diff) | |
download | mpd-f2491c88c86707cc35c7dfc30a1b5a0a29886540.tar.gz mpd-f2491c88c86707cc35c7dfc30a1b5a0a29886540.tar.xz mpd-f2491c88c86707cc35c7dfc30a1b5a0a29886540.zip |
PcmDither: convert struct to a class
Diffstat (limited to 'src/PcmConvert.cxx')
-rw-r--r-- | src/PcmConvert.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PcmConvert.cxx b/src/PcmConvert.cxx index ed260d074..9618b9642 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); |