opus_custom_encoder_init method

int opus_custom_encoder_init(
  1. Pointer<OpusCustomEncoder> st,
  2. Pointer<OpusCustomMode> mode,
  3. int channels
)

Initializes a previously allocated encoder state The memory pointed to by st must be the size returned by opus_custom_encoder_get_size. This is intended for applications which use their own allocator instead of malloc. @see opus_custom_encoder_create(),opus_custom_encoder_get_size() To reset a previously initialized state use the OPUS_RESET_STATE CTL. @param in st OpusCustomEncoder*: Encoder state @param in mode OpusCustomMode *: Contains all the information about the characteristics of the stream (must be the same characteristics as used for the decoder) @param in channels int: Number of channels @return OPUS_OK Success or @ref opus_errorcodes

Implementation

int opus_custom_encoder_init(
  ffi.Pointer<OpusCustomEncoder> st,
  ffi.Pointer<OpusCustomMode> mode,
  int channels,
) {
  return _opus_custom_encoder_init(st, mode, channels);
}