[Speex-dev] Echo cancellation and synchronization
Jean-Marc Valin
jean-marc.valin at usherbrooke.ca
Sun Jan 4 20:28:32 PST 2009
Peter Vestberg a écrit :
> The problem seems to be that the sound output thread (and thus
> speex_echo_playback()) sometimes executes three frames/"iterations"
> before the sound input thread (and thus speex_echo_capture()) comes in.
> How do I deal with this problem? I suspect I cannot really affect how
> often the sound card lib requires a new frame or has one available.
Then I suggest doing the buffering yourself and using
speex_echo_cancellation() instead of the playback() and capture() calls.
Jean-Marc
More information about the Speex-dev
mailing list