mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
core: add pa_sink_update_proplist
This commit is contained in:
parent
f6ac7b4ed6
commit
9444347c06
2 changed files with 16 additions and 0 deletions
|
|
@ -953,6 +953,20 @@ pa_bool_t pa_sink_get_mute(pa_sink *s, pa_bool_t force_refresh) {
|
|||
return s->muted;
|
||||
}
|
||||
|
||||
pa_bool_t pa_sink_update_proplist(pa_sink *s, pa_update_mode_t mode, pa_proplist *p) {
|
||||
|
||||
pa_sink_assert_ref(s);
|
||||
|
||||
pa_proplist_update(s->proplist, mode, p);
|
||||
|
||||
if (PA_SINK_IS_LINKED(s->state)) {
|
||||
pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_PROPLIST_CHANGED], s);
|
||||
pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* Called from main thread */
|
||||
void pa_sink_set_description(pa_sink *s, const char *description) {
|
||||
const char *old;
|
||||
|
|
|
|||
|
|
@ -252,6 +252,8 @@ const pa_cvolume *pa_sink_get_volume(pa_sink *sink, pa_bool_t force_refresh);
|
|||
void pa_sink_set_mute(pa_sink *sink, pa_bool_t mute);
|
||||
pa_bool_t pa_sink_get_mute(pa_sink *sink, pa_bool_t force_refres);
|
||||
|
||||
pa_bool_t pa_sink_update_proplist(pa_sink *s, pa_update_mode_t mode, pa_proplist *p);
|
||||
|
||||
unsigned pa_sink_linked_by(pa_sink *s); /* Number of connected streams */
|
||||
unsigned pa_sink_used_by(pa_sink *s); /* Number of connected streams which are not corked */
|
||||
unsigned pa_sink_check_suspend(pa_sink *s); /* Returns how many streams are active that don't allow suspensions */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue