aec-webrtc: clarify comment

drift-compensation is not needed because PipeWire already does drift
compensation between all sinks and sources linked to the resampler.

See #2692
This commit is contained in:
Wim Taymans 2022-12-05 12:01:23 +01:00
parent 03f9466c5d
commit bc2cf226d7

View file

@ -100,7 +100,8 @@ static int webrtc_init(void *object, const struct spa_dict *args, const struct s
}
apm->high_pass_filter()->Enable(high_pass_filter);
// Always disable drift compensation since it requires drift sampling
// Always disable drift compensation since PipeWire will already do
// drift compensation on all sinks and sources linked to this echo-canceler
apm->echo_cancellation()->enable_drift_compensation(false);
apm->echo_cancellation()->Enable(true);
// TODO: wire up supression levels to args