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 IAudioFormat

interface IAudioFormat
Extends com.amazon.apmf.IStandard Interface to configure audio format.

Methods

setChannelCount()

void setChannelCount(i32 numberOfChannels)
Sets the number of audio channels. The audio channels value represents the number audio channels used by the audio, for example 1(mono), 2(stereo), 3(2.1), 5(4.1), 6(5.1), 8(7.1) etc.

Parameters

numberOfChannels
i32 — Required The number of audio channels.

setSampleRate()

void setSampleRate(i32 samplerate)
Sets the sample rate. Sample rate value represents number of samples of audio in Hz carried per second.

Parameters

samplerate
i32 — Required The sample rate value in Hz.

setSampleFormat()

void setSampleFormat(AudioSampleFormat* format)
Sets the raw sample format. For Decoders or Decryptors Output or Encoder Input.

Parameters

format
AudioSampleFormat* — Required The format type for the sample, supported values are defined in AudioSampleFormat
Last modified on October 29, 2026