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