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 IAudioParams

interface IAudioParams
Extends com.amazon.apmf.IStandard AudioParams represents all audio related information required to create mediasamplesourcetrack for audio

Methods

setAudioStreamFormat()

void setAudioStreamFormat(AudioStreamFormat audioStreamFormat)
Sets the stream format of audio.

Parameters

audioStreamFormat
AudioStreamFormat — Required The stream format of audio.

setAudioChannelCount()

void setAudioChannelCount(i32 audioChannelCount)
Sets the number of channels of audio.

Parameters

audioChannelCount
i32 — Required The number of channels of audio.

setAudioSampleRate()

void setAudioSampleRate(i32 audioSampleRateHz)
Sets the sample rate of audio.

Parameters

audioSampleRateHz
i32 — Required The sample rate of audio in Hz.

setCodecSpecificConfigData()

void setCodecSpecificConfigData(u8[] configData)
Optionally set the codec specific configuration data.

Parameters

configData
u8[] — Required The codec specific configuration data.

enableEncryption()

void enableEncryption()
Enables audio encryption.

disableEncryption()

void disableEncryption()
Disables audio encryption.
Last modified on October 29, 2026