Include pause and resume in the example

This commit is contained in:
Gwilym Inzani 2024-02-03 21:09:01 +00:00
parent d8110243f4
commit fec06e0c69

View file

@ -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();
}
}
}