aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-22 22:50:43 +0100
committerMax Kellermann <max@duempel.org>2013-11-22 23:24:40 +0100
commit87c8953e8ed660b59ea2452b4d3a431785c47495 (patch)
tree9ddf5c278ba0c270f5d430b0994b42ca2a954c48
parent45d27a52f17be05f5269d7dc37f380ed595196e7 (diff)
downloadmpd-87c8953e8ed660b59ea2452b4d3a431785c47495.tar.gz
mpd-87c8953e8ed660b59ea2452b4d3a431785c47495.tar.xz
mpd-87c8953e8ed660b59ea2452b4d3a431785c47495.zip
PcmResample: un-inline Resample24()
Diffstat (limited to '')
-rw-r--r--src/pcm/PcmResample.cxx12
-rw-r--r--src/pcm/PcmResample.hxx8
2 files changed, 13 insertions, 7 deletions
diff --git a/src/pcm/PcmResample.cxx b/src/pcm/PcmResample.cxx
index e2ce095d1..df37826ba 100644
--- a/src/pcm/PcmResample.cxx
+++ b/src/pcm/PcmResample.cxx
@@ -148,3 +148,15 @@ PcmResampler::Resample32(unsigned channels, unsigned src_rate,
src_rate, src_buffer, src_size,
dest_rate, dest_size_r);
}
+
+const int32_t *
+PcmResampler::Resample24(unsigned channels, unsigned src_rate,
+ const int32_t *src_buffer, size_t src_size,
+ unsigned dest_rate, size_t *dest_size_r,
+ Error &error_r)
+{
+ /* reuse the 32 bit code - the resampler code doesn't care if
+ the upper 8 bits are actually used */
+ return Resample32(channels, src_rate, src_buffer, src_size,
+ dest_rate, dest_size_r, error_r);
+}
diff --git a/src/pcm/PcmResample.hxx b/src/pcm/PcmResample.hxx
index 8a740744a..e839d6ecd 100644
--- a/src/pcm/PcmResample.hxx
+++ b/src/pcm/PcmResample.hxx
@@ -124,13 +124,7 @@ struct PcmResampler {
const int32_t *Resample24(unsigned channels, unsigned src_rate,
const int32_t *src_buffer, size_t src_size,
unsigned dest_rate, size_t *dest_size_r,
- Error &error_r)
- {
- /* reuse the 32 bit code - the resampler code doesn't care if
- the upper 8 bits are actually used */
- return Resample32(channels, src_rate, src_buffer, src_size,
- dest_rate, dest_size_r, error_r);
- }
+ Error &error_r);
};
bool