]>
code.octet-stream.net Git - m17rt/blob - demod/src/main.rs
563b7218cc3bece260818bd23504fa5a5af29ce9
1 use m17app
::app
::M17App
;
2 use m17app
::soundmodem
::{InputRrcFile
, InputSoundcard
, Soundmodem
};
3 use m17codec2
::Codec2Adapter
;
4 use std
::path
::PathBuf
;
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());
14 std
::thread
::sleep(std
::time
::Duration
::from_secs(15));