mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
A lot of more work to get the lock-free stuff in place
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1474 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
69115687ad
commit
be4a882836
33 changed files with 908 additions and 694 deletions
|
|
@ -114,7 +114,7 @@ static void io_callback(pa_mainloop_api *io, PA_GCC_UNUSED pa_io_event *e, PA_GC
|
|||
pa_log("failed to get sink '%s'", u->sink_name);
|
||||
else {
|
||||
int i;
|
||||
pa_cvolume cv = *pa_sink_get_volume(s, PA_MIXER_HARDWARE);
|
||||
pa_cvolume cv = *pa_sink_get_volume(s);
|
||||
|
||||
#define DELTA (PA_VOLUME_NORM/20)
|
||||
|
||||
|
|
@ -127,7 +127,7 @@ static void io_callback(pa_mainloop_api *io, PA_GCC_UNUSED pa_io_event *e, PA_GC
|
|||
cv.values[i] = PA_VOLUME_NORM;
|
||||
}
|
||||
|
||||
pa_sink_set_volume(s, PA_MIXER_HARDWARE, &cv);
|
||||
pa_sink_set_volume(s, &cv);
|
||||
break;
|
||||
|
||||
case DOWN:
|
||||
|
|
@ -138,12 +138,12 @@ static void io_callback(pa_mainloop_api *io, PA_GCC_UNUSED pa_io_event *e, PA_GC
|
|||
cv.values[i] = PA_VOLUME_MUTED;
|
||||
}
|
||||
|
||||
pa_sink_set_volume(s, PA_MIXER_HARDWARE, &cv);
|
||||
pa_sink_set_volume(s, &cv);
|
||||
break;
|
||||
|
||||
case MUTE_TOGGLE:
|
||||
|
||||
pa_sink_set_mute(s, PA_MIXER_HARDWARE, !pa_sink_get_mute(s, PA_MIXER_HARDWARE));
|
||||
pa_sink_set_mute(s, !pa_sink_get_mute(s));
|
||||
break;
|
||||
|
||||
case INVALID:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue