Add a method to stop a playing sound

This commit is contained in:
Gwilym Kuiper 2021-06-25 22:26:00 +01:00
parent bd15a87c4d
commit 0b5d6f7978

View file

@ -90,4 +90,8 @@ impl SoundChannel {
self.volume = volume; self.volume = volume;
self self
} }
pub fn stop(&mut self) {
self.is_done = true
}
} }