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>
This commit is contained in:
Robin Burchell
2014-07-22 18:24:22 +02:00
committed by Robin Burchell
parent 1c5ea9561a
commit 5f33d7bea3
2 changed files with 22 additions and 7 deletions

View File

@@ -142,6 +142,7 @@ private:
QString m_category;
qreal m_volume;
bool m_customVolumeRequired;
pa_cvolume m_chVolume;
pa_sample_spec m_spec;
};