opus_custom_decoder_create method
Pointer<OpusCustomDecoder>
opus_custom_decoder_create(
- Pointer<
OpusCustomMode> mode, - int channels,
- Pointer<
Int32> error
Creates a new decoder state. Each stream needs its own decoder state (can't
be shared across simultaneous streams).
@param in
mode OpusCustomMode: Contains all the information about the characteristics of the
stream (must be the same characteristics as used for the encoder)
@param in
channels int: Number of channels
@param out
error int*: Returns an error code
@return Newly created decoder state.
Implementation
ffi.Pointer<OpusCustomDecoder> opus_custom_decoder_create(
ffi.Pointer<OpusCustomMode> mode,
int channels,
ffi.Pointer<ffi.Int32> error,
) {
return _opus_custom_decoder_create(mode, channels, error);
}