Struct kira::manager::AudioManagerSettings
source · [−]#[non_exhaustive]pub struct AudioManagerSettings {
pub command_capacity: usize,
pub sound_capacity: usize,
pub sub_track_capacity: usize,
pub clock_capacity: usize,
pub main_track_builder: TrackBuilder,
}
Expand description
Settings for an AudioManager
.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.command_capacity: usize
The number of commands that be sent to the renderer at a time.
Each action you take, like playing a sound or pausing a clock, queues up one command.
sound_capacity: usize
The maximum number of sounds that can be playing at a time.
sub_track_capacity: usize
The maximum number of mixer sub-tracks that can exist at a time.
clock_capacity: usize
The maximum number of clocks that can exist at a time.
main_track_builder: TrackBuilder
Configures the main mixer track.
Implementations
Creates a new AudioManagerSettings
with the default settings.
Sets the number of commands that be sent to the renderer at a time.
Each action you take, like playing a sound or pausing a clock, queues up one command.
Sets the maximum number of sounds that can be playing at a time.
Sets the maximum number of mixer sub-tracks that can exist at a time.
Sets the maximum number of clocks that can exist at a time.
Configures the main mixer track.