]> code.octet-stream.net Git - m17rt/blob - demod/src/main.rs
d0e562d86400c96437c6789555fe61d78730c39c
[m17rt] / demod / src / main.rs
1 use m17app::app::M17App;
2 use m17app::soundmodem::{InputRrcFile, InputSoundcard, 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 source = InputSoundcard::new();
10 let soundmodem = Soundmodem::new_with_input(source);
11 let app = M17App::new(soundmodem);
12 app.add_stream_adapter(Codec2Adapter::new());
13 app.start();
14 std::thread::sleep(std::time::Duration::from_secs(15));
15 }
16
17 fn main() {
18 env_logger::init();
19 m17app_test();
20 }