opus_custom_decode method

int opus_custom_decode(
  1. Pointer<OpusCustomDecoder> st,
  2. Pointer<Uint8> data,
  3. int len,
  4. Pointer<Int16> pcm,
  5. int frame_size,
)

Decode an opus custom frame @param in st OpusCustomDecoder*: Decoder state @param in data char*: Input payload. Use a NULL pointer to indicate packet loss @param in len int: Number of bytes in payload @param out pcm opus_int16*: Output signal (interleaved if 2 channels). length is frame_sizechannelssizeof(opus_int16) @param in frame_size Number of samples per channel of available space in *pcm. @returns Number of decoded samples or @ref opus_errorcodes

Implementation

int opus_custom_decode(
  ffi.Pointer<OpusCustomDecoder> st,
  ffi.Pointer<ffi.Uint8> data,
  int len,
  ffi.Pointer<ffi.Int16> pcm,
  int frame_size,
) {
  return _opus_custom_decode(st, data, len, pcm, frame_size);
}