X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=src%2Fcodecs%2Freal%2Fra144.rs;h=97577d68fdea00d3dc3baf2e9b2b1039ca521274;hb=1f7e9371e2ec548b6821bb01ce7ba82c4cd8068d;hp=c569899399cd23ed02b5f8befe78c33c133f11c2;hpb=c51b9806a8a1996f8b19d671bf1727a4e9aa233d;p=nihav.git diff --git a/src/codecs/real/ra144.rs b/src/codecs/real/ra144.rs index c569899..97577d6 100644 --- a/src/codecs/real/ra144.rs +++ b/src/codecs/real/ra144.rs @@ -26,7 +26,7 @@ impl RA144Decoder { 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, @@ -238,7 +238,7 @@ fn eval_reflection(coeffs: &[i16; LPC_ORDER]) -> Option { } fn clip_out(sample: i16) -> i16 { - sample.max(-16384 >> 2).min(16383 >> 2) + sample.max(-16384 >> 2).min(16383 >> 2) } impl NADecoder for RA144Decoder {