diff options
Diffstat (limited to 'polyp/resampler.c')
-rw-r--r-- | polyp/resampler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polyp/resampler.c b/polyp/resampler.c index 320d7119..adf08e80 100644 --- a/polyp/resampler.c +++ b/polyp/resampler.c @@ -75,8 +75,8 @@ struct pa_resampler* pa_resampler_new(const struct pa_sample_spec *a, const stru r->i_ss = *a; r->o_ss = *b; - r->i_sz = pa_sample_size(a); - r->o_sz = pa_sample_size(b); + r->i_sz = pa_frame_size(a); + r->o_sz = pa_frame_size(b); r->to_float32_func = pa_get_convert_to_float32_function(a->format); r->from_float32_func = pa_get_convert_from_float32_function(b->format); |