aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_aaudio.cpp
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2022-01-26 14:43:52 +0100
committerPaul Adenot <[email protected]>2022-03-08 14:49:50 +0100
commit5f12ba23fc969435dbc8ad24f5beee6c301b9293 (patch)
treece166a4f2b8a234a63534a1568ae8b9446c6f07d /src/cubeb_aaudio.cpp
parentad99eeb273149559bb5f6e86ae9661532c3c8a51 (diff)
downloadcubeb-5f12ba23fc969435dbc8ad24f5beee6c301b9293.tar.gz
cubeb-5f12ba23fc969435dbc8ad24f5beee6c301b9293.zip
Add a parameter to cubeb_resampler_create to enable reclocking
Diffstat (limited to 'src/cubeb_aaudio.cpp')
-rw-r--r--src/cubeb_aaudio.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cubeb_aaudio.cpp b/src/cubeb_aaudio.cpp
index b12c596..6076f1d 100644
--- a/src/cubeb_aaudio.cpp
+++ b/src/cubeb_aaudio.cpp
@@ -935,7 +935,8 @@ aaudio_stream_init_impl(cubeb_stream * stm, cubeb_devid input_device,
stm->resampler = cubeb_resampler_create(
stm, input_stream_params ? &in_params : NULL,
output_stream_params ? &out_params : NULL, target_sample_rate,
- stm->data_callback, stm->user_ptr, CUBEB_RESAMPLER_QUALITY_DEFAULT);
+ stm->data_callback, stm->user_ptr, CUBEB_RESAMPLER_QUALITY_DEFAULT,
+ CUBEB_RESAMPLER_RECLOCK_NONE);
if (!stm->resampler) {
LOG("Failed to create resampler");