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:-
- for the codec capabilities, array size of two(min, max) or more then two is supported.
- 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:-
- for the codec capabilities, array size of one or more then one is supported.
- 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()
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:-AudioSampleFormat[]getSampleFormats()
- for the codec capabilities, array size of one or more than one is supported.
- 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.

