mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-22 01:40:29 -05:00
pass pa_suspend_cause_t to set_state_in_io_thread() callbacks
The suspend cause isn't yet used by any of the callbacks. The alsa sink and source will use it to sync the mixer when the SESSION suspend cause is removed. Currently the syncing is done in pa_sink/source_suspend(), and I want to change that, because pa_sink/source_suspend() shouldn't have any alsa specific code.
This commit is contained in:
parent
b2537a8f38
commit
ad0616d4c9
25 changed files with 172 additions and 55 deletions
|
|
@ -149,7 +149,7 @@ struct pa_source {
|
|||
* are updated only after all the callback calls. In case of failure, the
|
||||
* state is set to SUSPENDED and the suspend cause is set to 0. */
|
||||
int (*set_state_in_main_thread)(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause); /* may be NULL */
|
||||
int (*set_state_in_io_thread)(pa_source *s, pa_source_state_t state); /* may be NULL */
|
||||
int (*set_state_in_io_thread)(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause); /* may be NULL */
|
||||
|
||||
/* Called when the volume is queried. Called from main loop
|
||||
* context. If this is NULL a PA_SOURCE_MESSAGE_GET_VOLUME message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue