From 2923c5eb688cadef9eef9044af8c7e3764ff8cb6 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Tue, 7 Sep 2010 15:07:39 +0530 Subject: echo-cancel: Mark immutable parameters as const in vfunc Marks the recording and playback streams as const in the pa_echo_canceller->run method for clarity. --- src/modules/echo-cancel/speex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/echo-cancel/speex.c') diff --git a/src/modules/echo-cancel/speex.c b/src/modules/echo-cancel/speex.c index 0d4d1236..17a89d23 100644 --- a/src/modules/echo-cancel/speex.c +++ b/src/modules/echo-cancel/speex.c @@ -104,7 +104,7 @@ fail: return FALSE; } -void pa_speex_ec_run(pa_echo_canceller *ec, uint8_t *rec, uint8_t *play, uint8_t *out) +void pa_speex_ec_run(pa_echo_canceller *ec, const uint8_t *rec, const uint8_t *play, uint8_t *out) { speex_echo_cancellation(ec->params.priv.speex.state, (const spx_int16_t *) rec, (const spx_int16_t *) play, (spx_int16_t *) out); } -- cgit