Skip to content

echo-cancel: Support old webrtc-audio-processing library

PulseAudio requires webrtc-audio-processing-1 >= 1.0 since v17.0, but Debian hasn't managed to package that version yet. The dependency is only used for the echo-cancel module, and the API exposed by the webrtc component doesn't appear to be changed.

It looks like we can revert the changes to allow building with an older version, but it would be better to have the code support both versions to make it easier to transition from early library versions to later versions. As a step towards that, check in an older copy of the webrtc component from commit b16b1071, and build with that when we have the old library version.


This is similar in spirit to pipewire/pipewire@1f1c308c. It can be done in the single file with #if defined(HAVE_WEBRTC)s but it can get a bit weary to read. The CI test failure seems to be unrelated.

More context is that I want to upgrade Debian's PulseAudio to v17.0, which led me to working on packaging webrtc-audio-processing v1.3 for Debian. But introducing a "new" package to Debian can be slow, so I don't really want to block v17.0 on that, thus this change. It's possible to carry the patch in the Debian package until we have the new library version, so it's OK if this is not merged.

Merge request reports

Loading