aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_resampler_internal.h
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2016-03-17 17:59:23 +0100
committerPaul Adenot <[email protected]>2016-03-18 12:10:19 +0100
commit4524a6778c3dc3c6f3d8bd37832af93f94df9f00 (patch)
tree6f89d5d27c887f4017b19a54e7d2abc5b6678565 /src/cubeb_resampler_internal.h
parent144e86617d5e1bda3301b68dae62c9f5c0ce1828 (diff)
downloadcubeb-4524a6778c3dc3c6f3d8bd37832af93f94df9f00.tar.gz
cubeb-4524a6778c3dc3c6f3d8bd37832af93f94df9f00.zip
When resampling an output stream the target rate is the rate we're resampling to.
Diffstat (limited to 'src/cubeb_resampler_internal.h')
-rw-r--r--src/cubeb_resampler_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cubeb_resampler_internal.h b/src/cubeb_resampler_internal.h
index fcd4a7f..6489b64 100644
--- a/src/cubeb_resampler_internal.h
+++ b/src/cubeb_resampler_internal.h
@@ -467,8 +467,8 @@ cubeb_resampler_create_internal(cubeb_stream * stream,
if (output_params && (output_params->rate != target_rate)) {
output_resampler.reset(
new cubeb_resampler_speex_one_way<T>(output_params->channels,
- output_params->rate,
target_rate,
+ output_params->rate,
to_speex_quality(quality)));
if (!output_resampler) {
return NULL;