Function lewton::audio::read_audio_packet_generic
source · pub fn read_audio_packet_generic<S: Samples>(
ident: &IdentHeader,
setup: &SetupHeader,
packet: &[u8],
pwr: &mut PreviousWindowRight
) -> Result<S, AudioReadError>
Expand description
Main audio packet decoding function
Pass your info to this function to get your raw packet data decoded.
Panics if the passed PreviousWindowRight struct doesn’t match the info from the ident header.