pub struct AudioConfig {
pub min_velocity: Fix128,
pub max_velocity: Fix128,
pub velocity_pitch_factor: Fix128,
pub min_volume: Fix128,
pub slide_velocity_threshold: Fix128,
pub max_events_per_frame: usize,
}Expand description
Audio event generator configuration
Fields§
§min_velocity: Fix128Minimum impact velocity to generate sound
max_velocity: Fix128Maximum volume impact velocity (velocities above this = max volume)
velocity_pitch_factor: Fix128Velocity to pitch mapping factor
min_volume: Fix128Minimum volume threshold (events below this are discarded)
slide_velocity_threshold: Fix128Sliding sound velocity threshold
max_events_per_frame: usizeMaximum simultaneous audio events per frame
Trait Implementations§
Source§impl Clone for AudioConfig
impl Clone for AudioConfig
impl Copy for AudioConfig
Source§impl Debug for AudioConfig
impl Debug for AudioConfig
Source§impl Default for AudioConfig
impl Default for AudioConfig
impl Eq for AudioConfig
Source§impl PartialEq for AudioConfig
impl PartialEq for AudioConfig
impl StructuralPartialEq for AudioConfig
Auto Trait Implementations§
impl Freeze for AudioConfig
impl RefUnwindSafe for AudioConfig
impl Send for AudioConfig
impl Sync for AudioConfig
impl Unpin for AudioConfig
impl UnsafeUnpin for AudioConfig
impl UnwindSafe for AudioConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more