createDecoder

@NotNull
abstract fun createDecoder(@NotNull codecInfo: @NotNull CodecInfo, sampleRate: Int, stereo: Boolean, frameSize: Int): @NotNull Decoder

Creates a new audio decoder with the specified 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.