mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
pass force_refresh=FALSE to all volume/mute read invocations
This commit is contained in:
parent
abd85af939
commit
916899a973
6 changed files with 20 additions and 20 deletions
|
|
@ -179,8 +179,8 @@ static void subscribe_callback(pa_core *c, pa_subscription_event_type_t t, uint3
|
|||
|
||||
name = pa_sprintf_malloc("sink:%s", sink->name);
|
||||
entry.channel_map = sink->channel_map;
|
||||
entry.volume = *pa_sink_get_volume(sink);
|
||||
entry.muted = pa_sink_get_mute(sink);
|
||||
entry.volume = *pa_sink_get_volume(sink, FALSE);
|
||||
entry.muted = pa_sink_get_mute(sink, FALSE);
|
||||
|
||||
} else {
|
||||
pa_source *source;
|
||||
|
|
@ -192,8 +192,8 @@ static void subscribe_callback(pa_core *c, pa_subscription_event_type_t t, uint3
|
|||
|
||||
name = pa_sprintf_malloc("source:%s", source->name);
|
||||
entry.channel_map = source->channel_map;
|
||||
entry.volume = *pa_source_get_volume(source);
|
||||
entry.muted = pa_source_get_mute(source);
|
||||
entry.volume = *pa_source_get_volume(source, FALSE);
|
||||
entry.muted = pa_source_get_mute(source, FALSE);
|
||||
}
|
||||
|
||||
if ((old = read_entry(u, name))) {
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ static void io_callback(pa_mainloop_api *io, pa_io_event *e, int fd, pa_io_event
|
|||
pa_log("Failed to get sink '%s'", u->sink_name);
|
||||
else {
|
||||
int i;
|
||||
pa_cvolume cv = *pa_sink_get_volume(s);
|
||||
pa_cvolume cv = *pa_sink_get_volume(s, FALSE);
|
||||
|
||||
#define DELTA (PA_VOLUME_NORM/20)
|
||||
|
||||
|
|
@ -159,7 +159,7 @@ static void io_callback(pa_mainloop_api *io, pa_io_event *e, int fd, pa_io_event
|
|||
|
||||
case MUTE_TOGGLE:
|
||||
|
||||
pa_sink_set_mute(s, !pa_sink_get_mute(s));
|
||||
pa_sink_set_mute(s, !pa_sink_get_mute(s, FALSE));
|
||||
break;
|
||||
|
||||
case INVALID:
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ static void io_callback(pa_mainloop_api *io, pa_io_event *e, int fd, pa_io_event
|
|||
pa_log("Failed to get sink '%s'", u->sink_name);
|
||||
else {
|
||||
int i;
|
||||
pa_cvolume cv = *pa_sink_get_volume(s);
|
||||
pa_cvolume cv = *pa_sink_get_volume(s, FALSE);
|
||||
|
||||
#define DELTA (PA_VOLUME_NORM/20)
|
||||
|
||||
|
|
@ -142,7 +142,7 @@ static void io_callback(pa_mainloop_api *io, pa_io_event *e, int fd, pa_io_event
|
|||
|
||||
case MUTE_TOGGLE:
|
||||
|
||||
pa_sink_set_mute(s, !pa_sink_get_mute(s));
|
||||
pa_sink_set_mute(s, !pa_sink_get_mute(s, FALSE));
|
||||
break;
|
||||
|
||||
case INVALID:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue