X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/253c89360003ac72c4f7078c03af973c58a1b129..bc4b6ea4290384cd8c380af2a9014f162fd43683:/tools/m17rt-mod/src/main.rs?ds=inline diff --git a/tools/m17rt-mod/src/main.rs b/tools/m17rt-mod/src/main.rs index 968c22a..7ba6961 100644 --- a/tools/m17rt-mod/src/main.rs +++ b/tools/m17rt-mod/src/main.rs @@ -1,7 +1,7 @@ use m17app::app::M17App; use m17app::soundmodem::{ - InputRrcFile, InputSoundcard, NullInputSource, NullOutputSink, OutputRrcFile, OutputSoundcard, - Soundmodem, + InputRrcFile, InputSoundcard, NullInputSource, NullOutputSink, NullPtt, OutputRrcFile, + OutputSoundcard, Soundmodem, }; use m17codec2::{Codec2Adapter, WavePlayer}; use std::path::PathBuf; @@ -11,7 +11,7 @@ pub fn mod_test() { //let out_path = PathBuf::from("../../../Data/mymod.rrc"); //let output = OutputRrcFile::new(out_path); let output = OutputSoundcard::new(); - let soundmodem = Soundmodem::new_with_input_and_output(NullInputSource::new(), output); + let soundmodem = Soundmodem::new(NullInputSource::new(), output, NullPtt::new()); let app = M17App::new(soundmodem); app.start(); std::thread::sleep(std::time::Duration::from_secs(1));