CodecSupplier

Represents a codec supplier for creating audio encoders and decoders of specific codec types.

Parameters

<Encoder>

The type of the audio encoder to be created.

<Decoder>

The type of the audio decoder to be created.

Functions

Link copied to clipboard
@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.
Link copied to clipboard
@NotNull
abstract fun createEncoder(@NotNull codecInfo: @NotNull CodecInfo, sampleRate: Int, stereo: Boolean, mtuSize: Int): @NotNull Encoder
Creates a new audio encoder with the specified parameters.
Link copied to clipboard
@NotNull
abstract fun getName(): @NotNull String
Gets the name of the codec.