[][src]Function x3::decoder::decode_frame

pub fn decode_frame(
    bytes: &mut ByteReader,
    wav: &mut Vec<i16>,
    params: &Parameters,
    p_wav: &mut usize,
    samples_written: &mut usize
) -> Result<(), X3Error>

Decode an individual frame.

Arguments

  • br - the data to decode as a ByteReader.
  • wav - where the wav data will be written to.
  • params - the audio properties.
  • p_wav - the pointer to keep a track of wav writes.