Struct ggez::audio::SpatialSource [−][src]
pub struct SpatialSource { /* fields omitted */ }
Expand description
A source of audio data located in space relative to a listener’s ears. Will stop playing when dropped.
Implementations
Trait Implementations
Plays the SpatialSource
; 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
Auto Trait Implementations
impl RefUnwindSafe for SpatialSource
impl Send for SpatialSource
impl Sync for SpatialSource
impl Unpin for SpatialSource
impl UnwindSafe for SpatialSource