Struct kira::sound::static_sound::StaticSoundHandle[][src]

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

Controls a static sound.

Implementations

Returns the current playback state of the sound.

Returns the current playback position of the sound (in seconds).

Sets the volume of the sound (as a factor of the original volume).

Sets the playback rate of the sound.

Changing the playback rate will change both the speed and pitch of the sound.

Sets the panning of the sound, where 0.0 is hard left, 0.5 is center, and 1.0 is hard right.

Fades out the sound to silence with the given tween and then pauses playback.

Resumes playback and fades in the sound from silence with the given tween.

Fades out the sound to silence with the given tween and then stops playback.

Once the sound is stopped, it cannot be restarted.

Sets the playback position to the specified time in seconds.

Moves the playback position by the specified amount of time in seconds.

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