aboutsummaryrefslogtreecommitdiff
path: root/src/pcm_resample_internal.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-08 13:41:39 +0200
committerMax Kellermann <max@duempel.org>2011-10-20 02:24:25 +0200
commit725e48fce4e4ad08a2a9aa0a64c3e79df5636108 (patch)
tree48c95e6a1ce0fd0a4b6c3b4e08218e2cbceb357b /src/pcm_resample_internal.h
parent43816c268ba71b0946986f28146213aac99c9872 (diff)
pcm_resample: add function pcm_resample_float()
A version of the resampler that doesn't need int->float->int conversion.
Diffstat (limited to 'src/pcm_resample_internal.h')
-rw-r--r--src/pcm_resample_internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pcm_resample_internal.h b/src/pcm_resample_internal.h
index e947eebf..0b0a0500 100644
--- a/src/pcm_resample_internal.h
+++ b/src/pcm_resample_internal.h
@@ -41,6 +41,14 @@ pcm_resample_lsr_init(struct pcm_resample_state *state);
void
pcm_resample_lsr_deinit(struct pcm_resample_state *state);
+const float *
+pcm_resample_lsr_float(struct pcm_resample_state *state,
+ unsigned channels,
+ unsigned src_rate,
+ const float *src_buffer, size_t src_size,
+ unsigned dest_rate, size_t *dest_size_r,
+ GError **error_r);
+
const int16_t *
pcm_resample_lsr_16(struct pcm_resample_state *state,
unsigned channels,