diff options
author | Robin Burchell <robin.burchell@jollamobile.com> | 2014-07-22 18:24:22 +0200 |
---|---|---|
committer | Robin Burchell <robin+qt@viroteck.net> | 2014-08-04 20:38:14 +0200 |
commit | 5f33d7bea3fd3dd441aff499576826a02e8e5be2 (patch) | |
tree | 4b8e3f346493c8a27b40ed79620e2967eaba20ef /src/plugins/pulseaudio/qaudiooutput_pulse.h | |
parent | 1c5ea9561ac2686fb01ebd87b2d2b990a27dddad (diff) |
Only call pa_cvolme set on stream creation if volume explicitly set.
Streams without a custom volume set use suitable volume selected
by the PulseAudio server. This is usually the correct choice, since then
stream-restore module can apply old volume to the stream. Also with
Sailfish explicitly setting the volume to streams breaks system volume.
Change-Id: I75f5bf4e7aaafb4bd55510f5ac4ddf03767d494b
Done-with: Juho Hämäläinen <juho.hamalainen@tieto.com>
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
Diffstat (limited to 'src/plugins/pulseaudio/qaudiooutput_pulse.h')
-rw-r--r-- | src/plugins/pulseaudio/qaudiooutput_pulse.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/pulseaudio/qaudiooutput_pulse.h b/src/plugins/pulseaudio/qaudiooutput_pulse.h index fea151ba2..d6c7cffe3 100644 --- a/src/plugins/pulseaudio/qaudiooutput_pulse.h +++ b/src/plugins/pulseaudio/qaudiooutput_pulse.h @@ -142,6 +142,7 @@ private: QString m_category; qreal m_volume; + bool m_customVolumeRequired; pa_cvolume m_chVolume; pa_sample_spec m_spec; }; |