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:
Colin Guthrie 2011-07-17 15:29:29 +01:00
parent 8840ebf9c3
commit ded07a5898
17 changed files with 175 additions and 67 deletions

View file

@ -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;