mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
module-echo-cancel: Correct offset
Correct the offset of first delayed data to run the canceller on.
This commit is contained in:
parent
7a0058ffb6
commit
facf73b01c
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ static void process(struct impl *impl)
|
||||||
pd[i] = play_delayed[i] + delay_left;
|
pd[i] = play_delayed[i] + delay_left;
|
||||||
o[i] = out[i] + delay_left;
|
o[i] = out[i] + delay_left;
|
||||||
}
|
}
|
||||||
spa_audio_aec_run(impl->aec, rec, pd, o, delay_left);
|
spa_audio_aec_run(impl->aec, rec, pd, o, size / sizeof(float) - delay_left);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* run the canceller */
|
/* run the canceller */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue