Struct amethyst_audio::AudioSink[][src]

pub struct AudioSink { /* fields omitted */ }

This structure provides a way to programmatically pick and play music.

Methods

impl AudioSink
[src]

Creates a new AudioSink using the given audio output.

Adds a source to the sink's queue of music to play.

Returns true if the sink has no more music to play.

Retrieves the volume of the sink, between 0.0 and 1.0;

Sets the volume of the sink.

Resumes playback of a paused sink. Has no effect if this sink was never paused.

Pauses playback, this can be resumed with AudioSink::play

Returns true if the sink is currently paused.

Empties the sink's queue of all music.

Auto Trait Implementations

impl Send for AudioSink

impl Sync for AudioSink