pub unsafe extern "C" fn opus_decode_float(
st: *mut OpusDecoder,
data: *const c_uchar,
len: opus_int32,
pcm: *mut f32,
frame_size: c_int,
decode_fec: c_int,
) -> c_intExpand description
Decode an Opus packet with floating point output.
§Arguments
st[in] - OpusDecoder*: Decoder statedata[in] - char*: Input payload. Use a NULL pointer to indicate packet losslen[in] - opus_int32: Number of bytes in payloadpcm[out] - float*: Output signal (interleaved if 2 channels). length is frame_sizechannelssizeof(float)frame_size[in] - Number of samples per channel of available space in pcm. If this is less than the maximum packet duration (120ms; 5760 for 48kHz), this function will not be capable of decoding some packets. In the case of PLC (data==NULL) or FEC (decode_fec=1), then frame_size needs to be exactly the duration of audio that is missing, otherwise the decoder will not be in the optimal state to decode the next incoming packet. For the PLC and FEC cases, frame_size must be a multiple of 2.5 ms.decode_fec[in] - int: Flag (0 or 1) to request that any in-band forward error correction data be decoded. If no such data is available the frame is decoded as if it were lost.
§Returns
Number of decoded samples or [opus_errorcodes]