aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_resampler.h
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_resampler.h
parentad99eeb273149559bb5f6e86ae9661532c3c8a51 (diff)
downloadcubeb-5f12ba23fc969435dbc8ad24f5beee6c301b9293.tar.gz
cubeb-5f12ba23fc969435dbc8ad24f5beee6c301b9293.zip
Add a parameter to cubeb_resampler_create to enable reclocking
Diffstat (limited to 'src/cubeb_resampler.h')
-rw-r--r--src/cubeb_resampler.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cubeb_resampler.h b/src/cubeb_resampler.h
index e9b9532..711a377 100644
--- a/src/cubeb_resampler.h
+++ b/src/cubeb_resampler.h
@@ -21,6 +21,11 @@ typedef enum {
CUBEB_RESAMPLER_QUALITY_DESKTOP
} cubeb_resampler_quality;
+typedef enum {
+ CUBEB_RESAMPLER_RECLOCK_NONE,
+ CUBEB_RESAMPLER_RECLOCK_INPUT
+} cubeb_resampler_reclock;
+
/**
* Create a resampler to adapt the requested sample rate into something that
* is accepted by the audio backend.
@@ -44,7 +49,8 @@ cubeb_resampler_create(cubeb_stream * stream,
cubeb_stream_params * input_params,
cubeb_stream_params * output_params,
unsigned int target_rate, cubeb_data_callback callback,
- void * user_ptr, cubeb_resampler_quality quality);
+ void * user_ptr, cubeb_resampler_quality quality,
+ cubeb_resampler_reclock reclock);
/**
* Fill the buffer with frames acquired using the data callback. Resampling will