opus_custom_encoder_create method

Pointer<OpusCustomEncoder> opus_custom_encoder_create(
  1. Pointer<OpusCustomMode> mode,
  2. int channels,
  3. Pointer<Int32> error
)

Creates a new encoder state. Each stream needs its own encoder 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 decoder) @param in channels int: Number of channels @param out error int*: Returns an error code @return Newly created encoder state.

Implementation

ffi.Pointer<OpusCustomEncoder> opus_custom_encoder_create(
  ffi.Pointer<OpusCustomMode> mode,
  int channels,
  ffi.Pointer<ffi.Int32> error,
) {
  return _opus_custom_encoder_create(mode, channels, error);
}