createDecoder

@NotNull
abstract fun <T : AudioDecoder?> createDecoder(@NotNull codecInfo: @NotNull CodecInfo, sampleRate: Int, stereo: Boolean, frameSize: Int): @NotNull T

Creates a new audio decoder with the specified codec information and configuration parameters.

Return

An instance of the audio decoder with the specified parameters.

Parameters

codecInfo

The codec information specifying the codec to be used.

sampleRate

The sample rate of the audio data.

stereo

true if the audio is in stereo format, false for mono.

frameSize

The size of the decoding frame.