pub fn decode_samples_opus(
decoder: Decoder,
sound_packets: Vec<SoundPacket>,
) -> Result<Vec<f32>>
Expand description
Decodes a list of SoundPacket
-s, into one raw sample.
§Behavior
The function takes a Decoder
and a list of SoundPacket
-s to decode. All information about the decoding process is included in said SoundPacket
-s.
§Error
Returns an error, if the SoundPacket
is corrupted (Contains invalid data)