opus_custom_mode_create method
Creates a new mode struct. This will be passed to an encoder or
decoder. The mode MUST NOT BE DESTROYED until the encoders and
decoders that use it are destroyed as well.
@param in
Fs int: Sampling rate (8000 to 96000 Hz)
@param in
frame_size int: Number of samples (per channel) to encode in each
packet (64 - 1024, prime factorization must contain zero or more 2s, 3s, or 5s and no other primes)
@param out
error int*: Returned error code (if NULL, no error will be returned)
@return A newly created mode
Implementation
ffi.Pointer<OpusCustomMode> opus_custom_mode_create(
int Fs,
int frame_size,
ffi.Pointer<ffi.Int32> error,
) {
return _opus_custom_mode_create(Fs, frame_size, error);
}