Struct bevy_retrograde::audio::kira::manager::AudioManager[]

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

Plays and manages audio.

The audio manager is responsible for all communication between the gameplay thread and the audio thread.

Implementations

Creates a new audio manager and starts an audio thread.

Sends a sound to the audio thread and returns a handle to the sound.

Loads a sound from a file and returns a handle to the sound.

This is a shortcut for constructing the sound manually and adding it using AudioManager::add_sound.

Removes a sound from the audio thread.

Sends a arrangement to the audio thread and returns a handle to the arrangement.

Removes an arrangement from the audio thread.

Adds a metronome and returns a handle to it.

Removes a metronome from the audio thread.

Starts a sequence.

Creates a parameter with the specified starting value.

Removes a parameter from the audio thread.

Returns a handle to the main mixer track.

Creates a mixer sub-track.

Removes a sub-track from the mixer.

Creates a mixer send track.

Removes a send track from the mixer.

Adds a group.

Removes a group.

Adds an audio stream.

Removes an audio stream.

Frees resources that are no longer in use, such as unloaded sounds or finished sequences.

Trait Implementations

Executes the destructor for this type. Read more

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

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.