Interface IAudioStreamPlayback3
interface IAudioStreamPlayback3
Extends IAudioStreamPlayback2
New AudioStreamPlayback interface to add method to set stream instance
specific volume with fade configuration.
Methods
setVolumeWithFade()
Set stream instance volume with fade type and duration. Set volume for this stream instance. It’s applied on top of the current system volume applicable for this stream.voidsetVolumeWithFade(u32volume,u32duration,AudioFadeType*fade)
Parameters
volume
u32 — Required
target volume (range: 0 to 100).
duration
u32 — Required
in milliseconds, if 0, target volume is
immediately applied without any fading.
A larger than 2000 ms value will be capped to 2000 ms.
fade
AudioFadeType* — Required
fade type:
LINEAR: volume changes linearly with time
IN_CUBIC: volume changes with in-cubic curve with time
OUT_CUBIC: volume changes with out-cubic curve with time

