mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 00:56:38 +11:00
Add a method to stop a playing sound
This commit is contained in:
parent
bd15a87c4d
commit
0b5d6f7978
1 changed files with 4 additions and 0 deletions
|
@ -90,4 +90,8 @@ impl SoundChannel {
|
|||
self.volume = volume;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn stop(&mut self) {
|
||||
self.is_done = true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue