Function lewton::audio::read_audio_packet [] [src]

pub fn read_audio_packet(
    ident: &IdentHeader,
    setup: &SetupHeader,
    packet: &[u8],
    pwr: &mut PreviousWindowRight
) -> Result<Vec<Vec<i16>>, AudioReadError>

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.