X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/bc4b6ea4290384cd8c380af2a9014f162fd43683..18349069c27a0b4fb2e39669fb535600805ad160:/tools/m17rt-mod/src/main.rs?ds=sidebyside diff --git a/tools/m17rt-mod/src/main.rs b/tools/m17rt-mod/src/main.rs index 7ba6961..c616b2e 100644 --- a/tools/m17rt-mod/src/main.rs +++ b/tools/m17rt-mod/src/main.rs @@ -1,4 +1,5 @@ use m17app::app::M17App; +use m17app::link_setup::M17Address; use m17app::soundmodem::{ InputRrcFile, InputSoundcard, NullInputSource, NullOutputSink, NullPtt, OutputRrcFile, OutputSoundcard, Soundmodem, @@ -8,15 +9,21 @@ use std::path::PathBuf; pub fn mod_test() { let in_path = PathBuf::from("../../../Data/test_vk7xt_8k.wav"); - //let out_path = PathBuf::from("../../../Data/mymod.rrc"); - //let output = OutputRrcFile::new(out_path); - let output = OutputSoundcard::new(); + let out_path = PathBuf::from("../../../Data/mymod.rrc"); + let output = OutputRrcFile::new(out_path); + //let output = OutputSoundcard::new(); 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)); println!("Beginning playback..."); - WavePlayer::play(in_path, app.tx()); + WavePlayer::play( + in_path, + app.tx(), + &M17Address::from_callsign("VK7XT").unwrap(), + &M17Address::new_broadcast(), + 0, + ); println!("Playback complete, terminating in 5 secs"); std::thread::sleep(std::time::Duration::from_secs(5)); }