[SailfishDevel] Updates to resource policy implementation in QtMultimedia (update8)

Juho Hämäläinen juho.hamalainen at tieto.com
Thu Jul 3 11:56:45 UTC 2014


On 03.07.2014 14:16, Martin Windolph wrote:
[...]
> You wrote:
> "Unless volume or category is explicitly set for the classes, all follow
> system media volume (changed with the hardware volume keys)."
>
> I like to fade the game main menu music (mp3) in and out. So I use an animation on
> the volume property of my Audio-QML-Object. So I set the volume explicitely from 100% to 0% (fade out) and from 0% to 100% (fade in).
>
> When system volume is eg. about 30%, does that mean that my menu music "global" volume fades from 30% to 0% or from 100% to 0%? 30% to 0% would be correct in my opinion...it also does so on Windows and Android.
> For the SoundEffects (wav) I don't change the volume. So they should be 30% (following system volume).

Unfortunately this won't be possible with the QML. When setting the 
volume to the Audio object, the volume is used as absolute value. So the 
volume of the audio would go from 0% to 100% absolute volume. Then when 
user would next press hw volume key, the stream's volume would be set to 
whatever volume is at that point. (So say system volume is 50%, Audio 
object volume is ramped from 0% to 100%, Audio object volume stays at 
100% until user presses volume up, and then system volume changes to 55% 
and Audio object volume changes to 55%)


-- 
juho


More information about the Devel mailing list