[][src]Function x3::decoder::decode_block

pub fn decode_block(
    br: &mut BitReader<'_>,
    wav: &mut [i16],
    last_wav: &mut i16,
    params: &Parameters
) -> Result<(), X3Error>

Decode a block of compressed x3 data. This function will determine weather to use the Rice Code method, or the BFP method.

Arguments

  • br - the data to decode as a BitReader.
  • wav - where the wav data will be written to.
  • last_wav - the last value of the previous block.
  • block_len - how many bytes the decoded block will be.
  • params - the audio properties.