#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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.

Trait Implementations

Returns the “default value” for a 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

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.