mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-19 08:57:00 -05:00
move flat volume logic into the core. while doing so add n_volume_steps field to sinks/sources
This commit is contained in:
parent
4bfa5d7d13
commit
d5f46e824e
32 changed files with 562 additions and 361 deletions
|
|
@ -126,7 +126,7 @@ static void io_callback(pa_mainloop_api *io, pa_io_event *e, int fd, pa_io_event
|
|||
cv.values[i] = PA_VOLUME_NORM;
|
||||
}
|
||||
|
||||
pa_sink_set_volume(s, &cv);
|
||||
pa_sink_set_volume(s, &cv, TRUE, TRUE);
|
||||
break;
|
||||
|
||||
case DOWN:
|
||||
|
|
@ -137,7 +137,7 @@ static void io_callback(pa_mainloop_api *io, pa_io_event *e, int fd, pa_io_event
|
|||
cv.values[i] = PA_VOLUME_MUTED;
|
||||
}
|
||||
|
||||
pa_sink_set_volume(s, &cv);
|
||||
pa_sink_set_volume(s, &cv, TRUE, TRUE);
|
||||
break;
|
||||
|
||||
case MUTE_TOGGLE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue