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

pub struct Source { /* fields omitted */ }
Expand description

A source of audio data that is connected to an output channel and ready to play. It will stop playing when dropped.

Implementations

Create a new Source from the given file.

Creates a new Source using the given SoundData object.

Trait Implementations

Formats the value using the given formatter. Read more

Plays the SoundSource; waits until done if the sound is currently playing

Play source “in the background”; cannot be stopped

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

Sets the fade-in time of the source

Sets the speed ratio (by adjusting the playback speed)

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. Read more

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). Read more

Get the time the source has been playing since the last call to play(). Read more

Set the update interval of the internal sample counter. Read more

Plays the audio source; restarts the sound if currently playing

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.