pulseaudio/src/modules/echo-cancel
Tanu Kaskinen b2537a8f38 replace sink/source SET_STATE handlers with callbacks
There are no behaviour changes, the code from almost all the SET_STATE
handlers is moved with minimal changes to the newly introduced
set_state_in_io_thread() callback. The only exception is module-tunnel,
which has to call pa_sink_render() after pa_sink.thread_info.state has
been updated. The set_state_in_io_thread() callback is called before
updating that variable, so moving the SET_STATE handler code to the
callback isn't possible.

The purpose of this change is to make it easier to get state change
handling right in modules. Hooking to the SET_STATE messages in modules
required care in calling pa_sink/source_process_msg() at the right time
(or not calling it at all, as was the case on resume failures), and
there were a few bugs (fixed before this patch). Now the core takes care
of ordering things correctly.

Another motivation for this change is that there was some talk about
adding a suspend_cause variable to pa_sink/source.thread_info. The
variable would be updated in the core SET_STATE handler, but that would
not work with the old design, because in case of resume failures modules
didn't call the core message handler.
2018-03-16 20:05:38 +02:00
..
adrian-aec.c echo-cancel: Add config.h in adrian-aec.c 2015-06-12 12:42:59 +05:30
adrian-aec.h echo-cancel: Fix memory leak / deinitialization of Adrian AEC 2013-02-14 16:23:38 +02:00
adrian-aec.orc echo-cancel: Make Orc file names less silly 2011-02-01 11:51:46 +05:30
adrian-license.txt echo-cancel: Add alternative echo-cancellation implementation 2010-09-07 15:12:12 +05:30
adrian.c echo-cancel: Use anonymous unions for echo canceller params 2016-02-25 09:09:13 +05:30
adrian.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
echo-cancel.h echo-cancel: Convert AGC API to deal with pa_volume_t 2016-02-25 19:06:44 +05:30
module-echo-cancel.c replace sink/source SET_STATE handlers with callbacks 2018-03-16 20:05:38 +02:00
null.c echo-cancel: Use anonymous unions for echo canceller params 2016-02-25 09:09:13 +05:30
speex.c echo-cancel: Expose dereverb in the speex canceller 2017-10-24 22:33:23 +05:30
webrtc.cc webrtc: improve comment about mic geometry 2016-06-22 21:04:47 +05:30