From fec06e0c69c39b1a4f5d991660a46e02fe927564 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Sat, 3 Feb 2024 21:09:01 +0000 Subject: [PATCH] Include pause and resume in the example --- agb/examples/mixer_basic.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/agb/examples/mixer_basic.rs b/agb/examples/mixer_basic.rs index ad29463c..f94257fb 100644 --- a/agb/examples/mixer_basic.rs +++ b/agb/examples/mixer_basic.rs @@ -46,6 +46,14 @@ fn main(mut gba: Gba) -> ! { } else { channel.volume(1); } + + if input.is_pressed(Button::A) { + channel.resume(); + } + + if input.is_pressed(Button::B) { + channel.pause(); + } } }