mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
devices: Use wrapper functions to set the *_volume and *_mute callbacks.
This is not currently useful but future commits will make further changes concerning automatic setting of flags and event delivery that makes this structure necessary.
This commit is contained in:
parent
8840ebf9c3
commit
ded07a5898
17 changed files with 175 additions and 67 deletions
|
|
@ -2014,8 +2014,8 @@ int pa__init(pa_module*m) {
|
|||
u->sink->parent.process_msg = sink_process_msg;
|
||||
u->sink->userdata = u;
|
||||
u->sink->set_state = sink_set_state;
|
||||
u->sink->set_volume = sink_set_volume;
|
||||
u->sink->set_mute = sink_set_mute;
|
||||
pa_sink_set_set_volume_callback(u->sink, sink_set_volume);
|
||||
pa_sink_set_set_mute_callback(u->sink, sink_set_mute);
|
||||
|
||||
u->sink->refresh_volume = u->sink->refresh_muted = FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue