fn new() -> Self {
RA144Decoder {
chmap: NAChannelMap::new(),
- ainfo: NAAudioInfo::new(0, 1, SND_F32P_FORMAT, NBLOCKS * BLOCKSIZE),
+ ainfo: NAAudioInfo::new(0, 1, SND_S16_FORMAT, NBLOCKS * BLOCKSIZE),
info: NACodecInfo::new_dummy(),
old_energy: 0,
}
fn clip_out(sample: i16) -> i16 {
- sample.max(-16384 >> 2).min(16383 >> 2)
+ sample.max(-16384 >> 2).min(16383 >> 2)
}
impl NADecoder for RA144Decoder {