module-echo-cancel: Correct offset

Correct the offset of first delayed data to run the canceller on.
This commit is contained in:
Jonas Holmberg 2022-10-21 16:16:19 +02:00 committed by Wim Taymans
parent 7a0058ffb6
commit facf73b01c

View file

@ -292,7 +292,7 @@ static void process(struct impl *impl)
pd[i] = play_delayed[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 {
/* run the canceller */