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 IAudioFormatCapabilities

interface IAudioFormatCapabilities
Extends com.amazon.apmf.IStandard Interface to get audio format related capabilities of audio codecs.

Methods

getChannelCount()

i32[] getChannelCount()
Gets the list of supported channels. Refer to https://www.w3.org/TR/media-capabilities/#audioconfiguration Gets the supported channel counts for codec or runtime get the channel count associated with buffers, where return array size varies according to usecase:-
  1. for the codec capabilities, array size of two(min, max) or more then two is supported.
  2. for the output buffer capabilities,array size of only one is supported.

Returns

i32[] non-empty list of supported channels in ascending order.

getSampleRates()

i32[] getSampleRates()
Gets the list of supported sample rates. Refer to https://www.w3.org/TR/media-capabilities/#audioconfiguration Gets the supported sampling rates for codec or runtime get the sampling rate associated with buffers, where return array size varies according to usecase:-
  1. for the codec capabilities, array size of one or more then one is supported.
  2. for the output buffer capabilities, array size of only one is supported.

Returns

i32[] non-empty list of supported sample rates in ascending order.

getSampleFormats()

AudioSampleFormat[] getSampleFormats()
Gets the list of sample formats. Gets the supported sample formats for codec or runtime get the sample format associated with buffers, where return array size varies according to usecase:-
  1. for the codec capabilities, array size of one or more than one is supported.
  2. for the output buffer capabilities, array size of only one is supported.

Returns

AudioSampleFormat[] list of supported sample formats from the available formats defined in AudioSampleFormat.
Last modified on October 29, 2026