Struct rodio::SpatialSink
source · [−]pub struct SpatialSink { /* private fields */ }
Implementations
Builds a new SpatialSink
.
Sets the position of the sound emitter in 3 dimensional space.
Sets the position of the left ear in 3 dimensional space.
Sets the position of the right ear in 3 dimensional space.
Appends a sound to the queue of sounds to play.
The value 1.0
is the “normal” volume (unfiltered input). Any value other than 1.0 will
multiply each sample by this value.
Changes the volume of the sound.
The value 1.0
is the “normal” volume (unfiltered input). Any value other than 1.0 will
multiply each sample by this value.
Gets the speed of the sound.
The value 1.0
is the “normal” speed (unfiltered input). Any value other than 1.0
will
change the play speed of the sound.
Changes the speed of the sound.
The value 1.0
is the “normal” speed (unfiltered input). Any value other than 1.0
will
change the play speed of the sound.
Pauses playback of this sink.
No effect if already paused.
A paused sound can be resumed with play()
.
Gets if a sound is paused
Sounds can be paused and resumed using pause() and play(). This gets if a sound is paused.
Sleeps the current thread until the sound ends.