x3::decoder

Function decode_block

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

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.