source code

This commit is contained in:
rustdesk
2021-03-27 09:41:55 +08:00
parent 002fce136c
commit ad0a24ba23
176 changed files with 35192 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
//! Test that supplying empty packets does forward error correction.
extern crate magnum_opus;
use magnum_opus::*;
#[test]
fn blah() {
let mut magnum_opus = Decoder::new(48000, Channels::Mono).unwrap();
let mut output = vec![0i16; 5760];
let size = magnum_opus.decode(&[], &mut output[..], true).unwrap();
assert_eq!(size, 5760);
}