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