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]

[src]

Creates a new Dj using the given audio output.

[src]

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

[src]

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

[src]

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

[src]

Sets the volume of the sink.

[src]

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

[src]

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

[src]

Returns true if the sink is currently paused.

[src]

Empties the sink's queue of all music.