diff options
| author | Yuval Adam <_@yuv.al> | 2022-07-30 17:54:27 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2022-07-30 17:54:27 +0300 |
| commit | c810802fb20bfb37b822dfc054e8052934e03ca2 (patch) | |
| tree | 9e16896406c5d4823890c483005032d0ced1c469 /c2enc | |
| parent | ec4708fe19d27dc097cbeca0f40a90a65abd4e99 (diff) | |
Add modes enum in constructor
Diffstat (limited to 'c2enc')
| -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(); |
