Struct kira::manager::AudioManager
source · [−]pub struct AudioManager<B: Backend> { /* private fields */ }
Expand description
Controls audio from gameplay code.
Implementations
Creates a new AudioManager
.
Plays a sound.
pub fn add_sub_track(
&mut self,
builder: TrackBuilder
) -> Result<TrackHandle, AddSubTrackError>
pub fn add_sub_track(
&mut self,
builder: TrackBuilder
) -> Result<TrackHandle, AddSubTrackError>
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.