Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IAudioStreamPlayback3

interface IAudioStreamPlayback3
Extends IAudioStreamPlayback2 New AudioStreamPlayback interface to add method to set stream instance specific volume with fade configuration.

Methods

setVolumeWithFade()

void setVolumeWithFade(u32 volume, u32 duration, AudioFadeType* fade)
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.

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
Last modified on October 29, 2026