mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
echo-cancel: Fix preprocessor initialisation
We were using the block size in bytes instead of samples, which meant preprocessing was broken. This fix makes a large-ish difference in the quality of echo-cancellation with speex.
This commit is contained in:
parent
fc0eebf2c4
commit
b2f83b2502
1 changed files with 1 additions and 1 deletions
|
|
@ -1481,7 +1481,7 @@ int pa__init(pa_module*m) {
|
|||
goto fail;
|
||||
}
|
||||
|
||||
u->ec->pp_state = speex_preprocess_state_init(u->blocksize, source_ss.rate);
|
||||
u->ec->pp_state = speex_preprocess_state_init(u->blocksize / pa_frame_size(&source_ss), source_ss.rate);
|
||||
|
||||
speex_preprocess_ctl(u->ec->pp_state, SPEEX_PREPROCESS_SET_AGC, &u->ec->agc);
|
||||
speex_preprocess_ctl(u->ec->pp_state, SPEEX_PREPROCESS_SET_DENOISE, &u->ec->denoise);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue