pcm_resample: add function pcm_resample_float()

A version of the resampler that doesn't need int->float->int
conversion.
This commit is contained in:
Max Kellermann
2011-10-08 13:41:39 +02:00
parent 43816c268b
commit 725e48fce4
4 changed files with 95 additions and 0 deletions

View File

@@ -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,