opus_decoder_init method
Initializes a previously allocated decoder state.
The state must be at least the size returned by opus_decoder_get_size().
This is intended for applications which use their own allocator instead of malloc. @see opus_decoder_create,opus_decoder_get_size
To reset a previously initialized state, use the #OPUS_RESET_STATE CTL.
@param in
st OpusDecoder*: Decoder state.
@param in
Fs opus_int32: Sampling rate to decode to (Hz).
This must be one of 8000, 12000, 16000,
24000, or 48000.
@param in
channels int: Number of channels (1 or 2) to decode
@retval #OPUS_OK Success or @ref opus_errorcodes
Implementation
int opus_decoder_init(
ffi.Pointer<OpusDecoder> st,
int Fs,
int channels,
) {
return _opus_decoder_init(st, Fs, channels);
}