AudioEncoderSpec
What an audio encoder writes: the format, the rate, the channels and the sample format. MediaSink.addAudioEncoder opens an encoder from it, and Transcoder.transcode takes one as its audio spec.
Constructors
Properties
The target bit rate in bits per second, for encoders that take one.
The exact channel layout, as an FFmpeg channel mask, when channels alone is ambiguous: six channels are 5.1 with back surrounds or 5.1 with side surrounds. Its channel count must equal channels. Null uses FFmpeg's default layout for the count, except that Transcoder then copies the source stream's.
The encoder that writes codec; null takes FFmpeg's default for the format. See VideoEncoderSpec.encoder.
Encoder-specific options, passed through as av_opt_set strings. A key that sets the same thing as a field, such as ar for sampleRate, is refused with FFmpegError.InvalidArgument.
SampleFormat.None picks the encoder's preferred format (e.g. fltp for aac).
Samples per second, for each channel.