diff options
Diffstat (limited to 'c2enc/src')
| -rw-r--r-- | c2enc/src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/c2enc/src/main.rs b/c2enc/src/main.rs index 9df5b6a..82ff52d 100644 --- a/c2enc/src/main.rs +++ b/c2enc/src/main.rs @@ -7,6 +7,8 @@ use std::io::prelude::*; use std::io::Cursor; use std::path::Path; +use libcodec2::{Codec2, Modes}; + struct Cli { in_path: std::path::PathBuf, out_path: std::path::PathBuf, @@ -32,7 +34,7 @@ fn main() { speech.push(i); } - let c = libcodec2::Codec2::new(); + let c = Codec2::new(Modes::Mode1400); let nsam = c.samples_per_frame(); let nbits = c.bytes_per_frame(); |
