aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_resample_libsamplerate.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-02 16:37:00 +0100
committerMax Kellermann <max@duempel.org>2009-03-02 16:37:00 +0100
commitd9c143429822e00da3aa8139f7cbd02807d7a645 (patch)
tree0a1e385b253df582b8334b4ff75da0f653643286 /src/pcm_resample_libsamplerate.c
parent1b31f5228582980a5435f1cfac942d1292c089a2 (diff)
downloadmpd-d9c143429822e00da3aa8139f7cbd02807d7a645.tar.gz
mpd-d9c143429822e00da3aa8139f7cbd02807d7a645.tar.xz
mpd-d9c143429822e00da3aa8139f7cbd02807d7a645.zip
pcm_resample: use 24 bit resampling code for 32 bit samples
Resampling 32 bit samples is the same as resampling 24 bit samples - both are stored in the int32_t type.
Diffstat (limited to '')
-rw-r--r--src/pcm_resample_libsamplerate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm_resample_libsamplerate.c b/src/pcm_resample_libsamplerate.c
index 2e942b024..365b45f5e 100644
--- a/src/pcm_resample_libsamplerate.c
+++ b/src/pcm_resample_libsamplerate.c
@@ -186,7 +186,7 @@ src_float_to_int_array (const float *in, int *out, int len)
#endif
const int32_t *
-pcm_resample_24(struct pcm_resample_state *state,
+pcm_resample_32(struct pcm_resample_state *state,
uint8_t channels,
unsigned src_rate,
const int32_t *src_buffer, size_t src_size,