references/WebRTC/modules/audio_coding/codecs/opus/opus_interface.c
/* |frame_size| is set to maximum Opus frame size in the normal case, and
 * is set to the number of samples needed for PLC in case of losses.
 * It is up to the caller to make sure the value is correct. */
|frame_size| is set to maximum Opus frame size in the normal case, and
is set to the number of samples needed for PLC in case of losses.
It is up to the caller to make sure the value is correct.
|frame_size| is set to maximum Opus frame size in the normal case and is set to the number of samples needed for PLC in case of losses . It is up to the caller to make sure the value is correct .
static int DecodeNative(OpusDecInst* inst, const uint8_t* encoded,
                        size_t encoded_bytes, int frame_size,
                        int16_t* decoded, int16_t* audio_type, int decode_fec) {
  int res = opus_decode(inst->decoder, encoded, (opus_int32)encoded_bytes,
                        (opus_int16*)decoded, frame_size, decode_fec);
  if (res <= 0)
    return -1;
  *audio_type = DetermineAudioType(inst, encoded_bytes);
  return res;
}
static int DecodeNative ( OpusDecInst * inst , const uint8_t * encoded , size_t encoded_bytes , int frame_size , int16_t * decoded , int16_t * audio_type , int decode_fec ) { int res = opus_decode ( inst -> decoder , encoded , ( opus_int32 ) encoded_bytes , ( opus_int16 * ) decoded , frame_size , decode_fec ) ; if ( res <= 0 ) return -1 ; * audio_type = DetermineAudioType ( inst , encoded_bytes ) ; return res ; }
|frame_size| is set to maximum Opus frame size in the normal case, and
 is set to the number of samples needed for PLC in case of losses.
|frame_size| is set to maximum Opus frame size in the normal case and is set to the number of samples needed for PLC in case of losses .