extern crate sdl2; #[test] fn audio_spec_wav() { let wav = sdl2::audio::AudioSpecWAV::load_wav("./assets/sine.wav").unwrap(); assert_eq!(wav.freq, 22_050); assert_eq!(wav.format, sdl2::audio::AudioFormat::S16LSB); assert_eq!(wav.channels, 1); let buffer = wav.buffer(); assert_eq!(buffer.len(), 4_410); }