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
Trait Implementations
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
Stops playback
Returns whether or not the source is stopped – that is, has no more data to play. Read more
Sets the current volume.
Get whether or not the source is playing (ie, not paused and not stopped). Read more
Set the update interval of the internal sample counter. Read more
Plays the audio source; restarts the sound if currently playing