summaryrefslogtreecommitdiffstats
path: root/src/modules/echo-cancel/speex.c
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2010-09-07 15:07:39 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2010-09-07 15:12:12 +0530
commitc36ab6896fd75931531f709844ea7f95c5829228 (patch)
treedbb38196126ff9c80c2602ec95688bb292594280 /src/modules/echo-cancel/speex.c
parent948a3d042cd2bfa7000aab48c96a8105201df704 (diff)
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.
Diffstat (limited to 'src/modules/echo-cancel/speex.c')
-rw-r--r--src/modules/echo-cancel/speex.c2
1 files changed, 1 insertions, 1 deletions
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);
}