]> code.octet-stream.net Git - m17rt/blob - demod/src/main.rs
0f7f031d236a1adeaae1c4c8f49ef24c58983559
[m17rt] / demod / src / main.rs
1 use m17app::app::M17App;
2 use m17app::soundmodem::{InputRrcFile, Soundmodem};
3 use m17codec2::Codec2Adapter;
4 use std::path::PathBuf;
5
6 pub fn m17app_test() {
7 let path = PathBuf::from("../../Data/test_vk7xt.rrc");
8 let source = InputRrcFile::new(path);
9 let soundmodem = Soundmodem::new_with_input(source);
10 let app = M17App::new(soundmodem);
11 app.add_stream_adapter(Codec2Adapter::new());
12 app.start();
13 std::thread::sleep(std::time::Duration::from_secs(15));
14 }
15
16 fn main() {
17 env_logger::init();
18 m17app_test();
19 }