pub struct AudioPresets;Expand description
Quick-access library of common audio source presets.
Implementations§
Source§impl AudioPresets
impl AudioPresets
Sourcepub fn cave_drip(position: Vec3) -> MathAudioSource
pub fn cave_drip(position: Vec3) -> MathAudioSource
Ambient cave drip at a position.
Sourcepub fn explosion(position: Vec3, scale: f32) -> MathAudioSource
pub fn explosion(position: Vec3, scale: f32) -> MathAudioSource
Explosion impact — loud, brief, with sub-bass punch.
Sourcepub fn magic_sparkle(position: Vec3) -> MathAudioSource
pub fn magic_sparkle(position: Vec3) -> MathAudioSource
Magical sparkle — high-frequency sinusoidal shimmer.
Auto Trait Implementations§
impl Freeze for AudioPresets
impl RefUnwindSafe for AudioPresets
impl Send for AudioPresets
impl Sync for AudioPresets
impl Unpin for AudioPresets
impl UnsafeUnpin for AudioPresets
impl UnwindSafe for AudioPresets
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.