aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_mixer.h
diff options
context:
space:
mode:
authorChun-Min Chang <[email protected]>2017-05-25 14:30:39 +0800
committerMatthew Gregan <[email protected]>2017-05-26 14:17:34 +1200
commit444c3cdd2b4b02bfddd13897dc4d1b865f0a2500 (patch)
treeba7582f5053ffbab7cc58d1793ebdffb7d42f7b6 /src/cubeb_mixer.h
parent290e63580080839cbada6a6f8b27c3cfe623c56a (diff)
downloadcubeb-444c3cdd2b4b02bfddd13897dc4d1b865f0a2500.tar.gz
cubeb-444c3cdd2b4b02bfddd13897dc4d1b865f0a2500.zip
Add assertions to check we don't write out of bound of buffer
Diffstat (limited to 'src/cubeb_mixer.h')
-rw-r--r--src/cubeb_mixer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cubeb_mixer.h b/src/cubeb_mixer.h
index 2cb2d14..eeb69f6 100644
--- a/src/cubeb_mixer.h
+++ b/src/cubeb_mixer.h
@@ -77,8 +77,9 @@ typedef struct cubeb_mixer cubeb_mixer;
cubeb_mixer * cubeb_mixer_create(cubeb_sample_format format,
unsigned char direction);
void cubeb_mixer_destroy(cubeb_mixer * mixer);
-void cubeb_mixer_mix(cubeb_mixer * mixer,
- void * input_buffer, long frames, void * output_buffer,
+void cubeb_mixer_mix(cubeb_mixer * mixer, long frames,
+ void * input_buffer, unsigned long input_buffer_length,
+ void * output_buffer, unsigned long outputput_buffer_length,
cubeb_stream_params const * stream_params,
cubeb_stream_params const * mixer_params);