Interface IAudioFormat
interface IAudioFormat
Extends com.amazon.apmf.IStandard
Interface to configure audio format.
Methods
setChannelCount()
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.voidsetChannelCount(i32numberOfChannels)
Parameters
numberOfChannels
i32 — Required
The number of audio channels.
setSampleRate()
Sets the sample rate. Sample rate value represents number of samples of audio in Hz carried per second.voidsetSampleRate(i32samplerate)
Parameters
samplerate
i32 — Required
The sample rate value in Hz.
setSampleFormat()
Sets the raw sample format. For Decoders or Decryptors Output or Encoder Input.voidsetSampleFormat(AudioSampleFormat*format)
Parameters
format
AudioSampleFormat* — Required
The format type for the sample, supported values
are defined in AudioSampleFormat

