diff --git a/apps/repl/src/cmds/audio.rs b/apps/repl/src/cmds/audio.rs index a65eea9b1..10f814de3 100644 --- a/apps/repl/src/cmds/audio.rs +++ b/apps/repl/src/cmds/audio.rs @@ -130,7 +130,7 @@ impl<'a> ShellCmdApi<'a> for Audio { env.codec.swap_frames(&mut frames).unwrap(); } else if *routing_id == STOP_ID { let mut ret = String::<1024>::new(); - env.codec.pause().unwrap(); // this should stop callbacks from occurring too. + env.codec.abort().unwrap(); // this should stop callbacks from occurring too. write!(ret, "{} {} {}.", t!("replapp.audio.completion_a", xous::LANG), self.framecount, diff --git a/services/shellchat/src/cmds/audio.rs b/services/shellchat/src/cmds/audio.rs index 4424291e8..8a183231a 100644 --- a/services/shellchat/src/cmds/audio.rs +++ b/services/shellchat/src/cmds/audio.rs @@ -111,7 +111,7 @@ impl<'a> ShellCmdApi<'a> for Audio { // we'll get a callback that demands the next data... } "stop" => { - self.codec.pause().unwrap(); // this should stop callbacks from occurring too. + self.codec.abort().unwrap(); // this should stop callbacks from occurring too. write!(ret, "Playback stopped at {} frames.", self.framecount).unwrap(); self.framecount = 0; self.play_ptr_bytes = 0; @@ -205,7 +205,7 @@ impl<'a> ShellCmdApi<'a> for Audio { } else { log::debug!("stopping playback"); if self.framecount != 0 { - self.codec.pause().unwrap(); // this should stop callbacks from occurring too. + self.codec.abort().unwrap(); // this should stop callbacks from occurring too. write!(ret, "Playback of {} frames finished", self.framecount).unwrap(); self.framecount = 0; self.play_ptr_bytes = 0; diff --git a/services/shellchat/src/cmds/test.rs b/services/shellchat/src/cmds/test.rs index 4d24edca5..f52c809e5 100644 --- a/services/shellchat/src/cmds/test.rs +++ b/services/shellchat/src/cmds/test.rs @@ -360,7 +360,7 @@ impl<'a> ShellCmdApi<'a> for Test { } "astop" => { - self.codec.pause().unwrap(); // this should stop callbacks from occurring too. + self.codec.abort().unwrap(); // this should stop callbacks from occurring too. write!(ret, "Playback stopped at {} frames.", self.framecount).unwrap(); self.framecount = 0; self.play_sample = 0.0; @@ -680,7 +680,7 @@ impl<'a> ShellCmdApi<'a> for Test { _ => self.freq = 659.25, } if elapsed - self.oqc_start > 6000 { - self.codec.pause().unwrap(); + self.codec.abort().unwrap(); // put system automatically into ship mode at conclusion of test env.gam.shipmode_blank_request().unwrap(); diff --git a/services/shellchat/src/cmds/tts.rs b/services/shellchat/src/cmds/tts.rs index b4830e7c9..15a3611fe 100644 --- a/services/shellchat/src/cmds/tts.rs +++ b/services/shellchat/src/cmds/tts.rs @@ -18,7 +18,7 @@ impl Tts { impl<'a> ShellCmdApi<'a> for Tts { cmd_api!(tts); // inserts boilerplate for command API - fn process(&mut self, args: String::<1024>, env: &mut CommonEnv) -> Result>, xous::Error> { + fn process(&mut self, args: String::<1024>, _env: &mut CommonEnv) -> Result>, xous::Error> { let mut ret = String::<1024>::new(); let helpstring = "tts options: speak";