Interface ISoundPlayerFactory
interface ISoundPlayerFactory
Extends com.amazon.apmf.IStandard
Factory Interface to create ISoundPlayer Object
Methods
makeSoundPlayer()
Creates a ISoundPlayer object.ISoundPlayer*makeSoundPlayer(stringsoundFile,AudioAttributes*attributes)
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
InvalidArgumentError— if not a wav file, or if file does not exist at given path.InvalidOperationError— if file size is greater than 1MBOutOfMemoryError— if failed to allocate memory
getSupportedPlaybackRates()
float[] getSupportedPlaybackRates()
Gets all supported playback rates
Returns
float[]
list of platform supported playback speeds (2.0x, 1.0x, 0.5x, etc.)
Throws
OutOfMemoryError— if failed to allocate memory for return array

