]> code.octet-stream.net Git - m17rt/blobdiff - demod/src/main.rs
Start handling KISS frames in SoftTnc
[m17rt] / demod / src / main.rs
index 563b7218cc3bece260818bd23504fa5a5af29ce9..0e3f0c8a27825ea04758c94566507d72dc7ed16b 100755 (executable)
@@ -1,13 +1,13 @@
 use m17app::app::M17App;
 use m17app::app::M17App;
-use m17app::soundmodem::{InputRrcFile, InputSoundcard, Soundmodem};
+use m17app::soundmodem::{InputRrcFile, InputSoundcard, NullOutputSink, Soundmodem};
 use m17codec2::Codec2Adapter;
 use std::path::PathBuf;
 
 pub fn m17app_test() {
 use m17codec2::Codec2Adapter;
 use std::path::PathBuf;
 
 pub fn m17app_test() {
-    //let path = PathBuf::from("../../Data/test_vk7xt.rrc");
-    //let source = InputRrcFile::new(path);
-    let source = InputSoundcard::new();
-    let soundmodem = Soundmodem::new_with_input(source);
+    let path = PathBuf::from("../../Data/test_vk7xt.rrc");
+    let source = InputRrcFile::new(path);
+    //let source = InputSoundcard::new();
+    let soundmodem = Soundmodem::new_with_input_and_output(source, NullOutputSink::new());
     let app = M17App::new(soundmodem);
     app.add_stream_adapter(Codec2Adapter::new());
     app.start();
     let app = M17App::new(soundmodem);
     app.add_stream_adapter(Codec2Adapter::new());
     app.start();