diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mixer/pulse_mixer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mixer/pulse_mixer.c b/src/mixer/pulse_mixer.c index f9c90191e..0e05271f2 100644 --- a/src/mixer/pulse_mixer.c +++ b/src/mixer/pulse_mixer.c @@ -342,12 +342,13 @@ pulse_mixer_set_volume(struct mixer *mixer, unsigned volume) if (pm->online) { pa_operation *o; + struct pa_cvolume cvolume; - pa_cvolume_set(&pm->volume, pm->volume.channels, + pa_cvolume_set(&cvolume, pm->volume.channels, (pa_volume_t)volume * PA_VOLUME_NORM / 100 + 0.5); o = pa_context_set_sink_input_volume(pm->context, pm->index, - &pm->volume, NULL, NULL); + &cvolume, NULL, NULL); if (o == NULL) { g_debug("pa_context_set_sink_input_volume() failed"); return false; |