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]

[src]

Create a new Source from the given file.

[src]

Creates a new Source using the given SoundData object.

[src]

Plays the Source.

[src]

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

[src]

Gets whether or not the source is set to repeat.

[src]

Pauses playback

[src]

Resumes playback

[src]

Stops playback

[src]

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

[src]

Gets the current volume

[src]

Sets the current volume

[src]

Get whether or not the source is paused

[src]

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

Trait Implementations

impl Debug for Source
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Source

impl Sync for Source