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 {
#[test]
fn test_ra144() {
let file = "assets/RV/ra3_in_rm_file.rm";
- test_decode_audio("realaudio", file, None, "realaudio144");
+ test_decode_audio("realmedia", file, Some(5000), "ra14.4");
}
}