mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
sink-input: add callbacks that are called whenever the mute/volume changes
This commit is contained in:
parent
52e5d4b1d2
commit
9f97b7cbe1
3 changed files with 38 additions and 6 deletions
|
|
@ -192,8 +192,16 @@ struct pa_sink_input {
|
|||
pa_bool_t (*may_move_to) (pa_sink_input *i, pa_sink *s); /* may be NULL */
|
||||
|
||||
/* If non-NULL this function is used to dispatch asynchronous
|
||||
* control events. */
|
||||
void (*send_event)(pa_sink_input *i, const char *event, pa_proplist* data);
|
||||
* control events. Called from main context. */
|
||||
void (*send_event)(pa_sink_input *i, const char *event, pa_proplist* data); /* may be NULL */
|
||||
|
||||
/* If non-NULL this function is called whenever the sink input
|
||||
* volume changes. Called from main context */
|
||||
void (*volume_changed)(pa_sink_input *i); /* may be NULL */
|
||||
|
||||
/* If non-NULL this function is called whenever the sink input
|
||||
* mute status changes. Called from main context */
|
||||
void (*mute_changed)(pa_sink_input *i); /* may be NULL */
|
||||
|
||||
struct {
|
||||
pa_sink_input_state_t state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue