Struct rodio::Sink [] [src]

pub struct Sink { /* fields omitted */ }

Handle to an endpoint that outputs sounds.

Dropping the Sink stops all sounds. You can use detach if you want the sounds to continue playing.

Methods

impl Sink
[src]

Builds a new Sink.

Appends a sound to the queue of sounds to play.

Changes the volume of the sound.

The value 1.0 is the "normal" volume (unfiltered input). Any value other than 1.0 will multiply each sample by this value.

Destroys the sink without stopping the sounds that are still playing.

Sleeps the current thread until the sound ends.

Trait Implementations

impl Drop for Sink
[src]

A method called when the value goes out of scope. Read more