opus_decoder_dred_decode

Function opus_decoder_dred_decode 

Source
pub unsafe extern "C" fn opus_decoder_dred_decode(
    st: *mut OpusDecoder,
    dred: *const OpusDRED,
    dred_offset: opus_int32,
    pcm: *mut opus_int16,
    frame_size: opus_int32,
) -> c_int
Expand description

Decode audio from an Opus DRED packet with floating point output. @param [in] st OpusDecoder*: Decoder state @param [in] dred OpusDRED*: DRED state @param [in] dred_offset opus_int32: position of the redundancy to decode (in samples before the beginning of the real audio data in the packet). @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 to decode in \a pcm. frame_size must be a multiple of 2.5 ms. @returns Number of decoded samples or @ref opus_errorcodes