mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-30 00:37:54 +08:00
13 lines
350 B
Rust
13 lines
350 B
Rust
//! 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);
|
|
} |