Struct rodio::queue::SourcesQueueInput
[−]
[src]
pub struct SourcesQueueInput<S> { /* fields omitted */ }
The input of the queue.
Methods
impl<S> SourcesQueueInput<S> where
S: Sample + Send + 'static,
[src]
S: Sample + Send + 'static,
pub fn append<T>(&self, source: T) where
T: Source<Item = S> + Send + 'static,
[src]
T: Source<Item = S> + Send + 'static,
Adds a new source to the end of the queue.
pub fn append_with_signal<T>(&self, source: T) -> Receiver<()> where
T: Source<Item = S> + Send + 'static,
[src]
T: Source<Item = S> + Send + 'static,
Adds a new source to the end of the queue.
The Receiver
will be signalled when the sound has finished playing.
pub fn set_keep_alive_if_empty(&self, keep_alive_if_empty: bool)
[src]
Sets whether the queue stays alive if there's no more sound to play.
See also the constructor.