mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
add more subscription events
add support for clients/modules in native protocol git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@115 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
cbfaf40b45
commit
886041aab8
9 changed files with 248 additions and 14 deletions
|
|
@ -276,10 +276,17 @@ uint32_t pa_sink_get_latency(struct pa_sink *s) {
|
|||
return s->get_latency(s);
|
||||
}
|
||||
|
||||
|
||||
void pa_sink_set_owner(struct pa_sink *sink, struct pa_module *m) {
|
||||
sink->owner = m;
|
||||
|
||||
if (sink->monitor_source)
|
||||
pa_source_set_owner(sink->monitor_source, m);
|
||||
}
|
||||
|
||||
void pa_sink_set_volume(struct pa_sink *sink, uint32_t volume) {
|
||||
assert(sink);
|
||||
if (sink->volume != volume) {
|
||||
pa_subscription_post(sink->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, sink->index);
|
||||
sink->volume = volume;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue