mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
echo-cancel: Fix null implementation to setup one channel
memcpy() of the null implementation's run() copied data for only one channel. Set the number of channels to 1 in init() in order to guarantee this. Signed-off-by: Stefan Huber <s.huber@bct-electronic.com> Acked-by: Peter Meerwald <p.meerwald@bct-electronic.com>
This commit is contained in:
parent
53f2964b40
commit
dc19d3eb29
1 changed files with 2 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ pa_bool_t pa_null_ec_init(pa_core *c, pa_echo_canceller *ec,
|
|||
unsigned framelen = 256;
|
||||
|
||||
source_ss->format = PA_SAMPLE_S16NE;
|
||||
source_ss->channels = 1;
|
||||
|
||||
*sink_ss = *source_ss;
|
||||
*sink_map = *source_map;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue