Struct ggez::audio::Source[][src]

pub struct Source { /* fields omitted */ }

A source of audio data connected to a particular Channel. Will stop playing when dropped.

Methods

impl Source
[src]

Create a new Source from the given file.

Creates a new Source using the given SoundData object.

Plays the Source.

Sets the source to repeat playback infinitely on next play()

Gets whether or not the source is set to repeat.

Pauses playback

Resumes playback

Stops playback

Returns whether or not the source is stopped -- that is, has no more data to play.

Gets the current volume

Sets the current volume

Get whether or not the source is paused

Get whether or not the source is playing (ie, not paused and not stopped)

Trait Implementations

impl Debug for Source
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Source

impl Sync for Source