Function ope_encoder_write

Source
pub unsafe extern "C" fn ope_encoder_write(
    enc: *mut OggOpusEnc,
    pcm: *const opus_int16,
    samples_per_channel: c_int,
) -> c_int
Expand description

Add/encode any number of 16-bit linear samples to the stream.

§Arguments

  • enc [in,out] - Encoder
  • pcm - Linear 16-bit PCM values in the [-32768,32767] range (interleaved if multiple channels)
  • samples_per_channel - Number of samples for each channel

§Returns

Error code