mirror of
https://github.com/rustdesk/magnum-opus.git
synced 2026-04-19 22:50:24 +00:00
13
tests/fec.rs
Normal file
13
tests/fec.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
//! Test that supplying empty packets does forward error correction.
|
||||
|
||||
extern crate opus;
|
||||
use opus::*;
|
||||
|
||||
#[test]
|
||||
fn blah() {
|
||||
let mut opus = Decoder::new(48000, Channels::Mono).unwrap();
|
||||
|
||||
let mut output = vec![0i16; 5760];
|
||||
let size = opus.decode(&[], &mut output[..], true).unwrap();
|
||||
assert_eq!(size, 5760);
|
||||
}
|
||||
Reference in New Issue
Block a user