pub struct AudioManager<B: Backend> { /* private fields */ }
Expand description

Controls audio from gameplay code.

Implementations

Creates a new AudioManager.

Plays a sound.

Creates a mixer sub-track.

Creates a clock.

Fades out and pauses all audio.

Resumes and fades in all audio.

Returns a handle to the main mixer track.

Returns the current playback state of the audio.

Returns the number of sounds that can be loaded at a time.

Returns the number of mixer sub-tracks that can exist at a time.

Returns the number of clocks that can exist at a time.

Returns the number of sounds that are currently loaded.

Returns the number of mixer sub-tracks that currently exist.

Returns the number of clocks that currently exist.

Returns a mutable reference to this manager’s backend.

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.