From: Kostya Shishkov Date: Sat, 7 Mar 2020 17:09:17 +0000 (+0100) Subject: binkaud: separate tests for different audio flavours X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=3b98184209c40cd8f77c833103427ca67a3487eb;p=nihav.git binkaud: separate tests for different audio flavours --- diff --git a/nihav-rad/src/codecs/binkaud.rs b/nihav-rad/src/codecs/binkaud.rs index 9a705d6..479ee35 100644 --- a/nihav-rad/src/codecs/binkaud.rs +++ b/nihav-rad/src/codecs/binkaud.rs @@ -295,17 +295,23 @@ mod test { use crate::rad_register_all_demuxers; #[test] - fn test_bink_audio() { + fn test_bink_audio_dct() { let mut dmx_reg = RegisteredDemuxers::new(); rad_register_all_demuxers(&mut dmx_reg); let mut dec_reg = RegisteredDecoders::new(); rad_register_all_codecs(&mut dec_reg); -// let file = "assets/RAD/ActivisionLogo.bik"; - let file = "assets/RAD/original.bik"; -// let file = "assets/RAD/Snd0a110c51.dee"; -// let file = "assets/RAD/NEW.BIK"; -// let file = "assets/RAD/ge_video_86l.bk2"; + let file = "assets/RAD/ActivisionLogo.bik"; + test_decode_audio("bink", file, None, None/*Some("bink")*/, &dmx_reg, &dec_reg); + } + #[test] + fn test_bink_audio_rdft() { + let mut dmx_reg = RegisteredDemuxers::new(); + rad_register_all_demuxers(&mut dmx_reg); + let mut dec_reg = RegisteredDecoders::new(); + rad_register_all_codecs(&mut dec_reg); + + let file = "assets/RAD/NWCLOGO.BIK"; test_decode_audio("bink", file, None, None/*Some("bink")*/, &dmx_reg, &dec_reg); } }