mirror of
https://github.com/RustAudio/rodio
synced 2024-12-13 21:52:38 +00:00
commit
59bd1f66f7
2 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "rodio"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
||||
license = "Apache-2.0"
|
||||
description = "Audio playback library"
|
||||
|
|
|
@ -116,6 +116,12 @@ impl Sink {
|
|||
self.pause.load(Ordering::SeqCst)
|
||||
}
|
||||
|
||||
/// Stops the sink by emptying the queue.
|
||||
#[inline]
|
||||
pub fn stop(&self) {
|
||||
self.stopped.store(true, Ordering::SeqCst);
|
||||
}
|
||||
|
||||
/// Destroys the sink without stopping the sounds that are still playing.
|
||||
#[inline]
|
||||
pub fn detach(mut self) {
|
||||
|
|
Loading…
Reference in a new issue