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 ISoundPlayerFactory

interface ISoundPlayerFactory
Extends com.amazon.apmf.IStandard Factory Interface to create ISoundPlayer Object

Methods

makeSoundPlayer()

ISoundPlayer* makeSoundPlayer(string soundFile, AudioAttributes* attributes)
Creates a ISoundPlayer object.

Parameters

soundFile
string — Required path to a .wav sound file. Max file size is limited to 1MB.
attributes
AudioAttributes* — Required audio attributes to be used for playback

Returns

ISoundPlayer* ISoundPlayer object.

Throws


getSupportedPlaybackRates()

float[] getSupportedPlaybackRates()
Gets all supported playback rates

Returns

float[] list of platform supported playback speeds (2.0x, 1.0x, 0.5x, etc.)

Throws


Last modified on October 29, 2026