diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-03 11:56:57 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-03 11:56:57 -0500 |
commit | 2d4aca6d0036937afadfb93359d31fe3b4eabf84 (patch) | |
tree | c946f3a7500c91df93b1a25a38ade9411fe64462 /media/libcubeb/src/cubeb_resampler.h | |
parent | 302bf1b523012e11b60425d6eee1221ebc2724eb (diff) | |
parent | 6ee3467a6cfa5a4bd5ca252e00e1b58c469a5011 (diff) | |
download | UXP-2d4aca6d0036937afadfb93359d31fe3b4eabf84.tar UXP-2d4aca6d0036937afadfb93359d31fe3b4eabf84.tar.gz UXP-2d4aca6d0036937afadfb93359d31fe3b4eabf84.tar.lz UXP-2d4aca6d0036937afadfb93359d31fe3b4eabf84.tar.xz UXP-2d4aca6d0036937afadfb93359d31fe3b4eabf84.zip |
Merge branch 'master' into mailnews-work
Diffstat (limited to 'media/libcubeb/src/cubeb_resampler.h')
-rw-r--r-- | media/libcubeb/src/cubeb_resampler.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/media/libcubeb/src/cubeb_resampler.h b/media/libcubeb/src/cubeb_resampler.h index 020ccc17a..f6b551373 100644 --- a/media/libcubeb/src/cubeb_resampler.h +++ b/media/libcubeb/src/cubeb_resampler.h @@ -25,8 +25,15 @@ typedef enum { * Create a resampler to adapt the requested sample rate into something that * is accepted by the audio backend. * @param stream A cubeb_stream instance supplied to the data callback. - * @param params Used to calculate bytes per frame and buffer size for resampling. - * @param target_rate The sampling rate after resampling. + * @param input_params Used to calculate bytes per frame and buffer size for + * resampling of the input side of the stream. NULL if input should not be + * resampled. + * @param output_params Used to calculate bytes per frame and buffer size for + * resampling of the output side of the stream. NULL if output should not be + * resampled. + * @param target_rate The sampling rate after resampling for the input side of + * the stream, and/or the sampling rate prior to resampling of the output side + * of the stream. * @param callback A callback to request data for resampling. * @param user_ptr User data supplied to the data callback. * @param quality Quality of the resampler. @@ -47,8 +54,8 @@ cubeb_resampler * cubeb_resampler_create(cubeb_stream * stream, * @param input_buffer A buffer of input samples * @param input_frame_count The size of the buffer. Returns the number of frames * consumed. - * @param buffer The buffer to be filled. - * @param frames_needed Number of frames that should be produced. + * @param output_buffer The buffer to be filled. + * @param output_frames_needed Number of frames that should be produced. * @retval Number of frames that are actually produced. * @retval CUBEB_ERROR on error. */ |