mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
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.
This commit is contained in:
parent
948a3d042c
commit
c36ab6896f
3 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue