X-Git-Url: https://git.nihav.org/?p=nihav-player.git;a=blobdiff_plain;f=sndplay%2Fsrc%2Fmain.rs;h=990507d963cd452e48f1c3e787e19c4725923f73;hp=377c2d1b11bb7b134f3a1b9e1bd5ad287a61d175;hb=98431ed56fad70a277a396aea69a67919b52a3ab;hpb=0a727e0528c2b26c5cefb9bbf13f6b356e6fb3db diff --git a/sndplay/src/main.rs b/sndplay/src/main.rs index 377c2d1..990507d 100644 --- a/sndplay/src/main.rs +++ b/sndplay/src/main.rs @@ -466,8 +466,18 @@ impl Player { Command::Debug => { self.debug = !self.debug; }, - Command::PauseDisplay => { no_display = true; }, - Command::ResumeDisplay => { no_display = false; }, + Command::PauseDisplay => { + no_display = true; + if !self.paused { + device.pause(); + } + }, + Command::ResumeDisplay => { + no_display = false; + if !self.paused { + device.resume(); + } + }, }; if !no_display { print!("\r{:60}\r", ' ');