pub struct SoundEffect {
pub radius: f32,
pub inner_radius: f32,
pub sounds: Vec<EffectSound>,
pub max_length: i64,
}Expand description
A sound effect: a timeline of sounds, each with variants, a pitch range and a volume, and the radius within which it can be heard.
Original: Audio::SoundEffect::Serialize, Runtime 0x1800e32f0.
Fields§
§radius: f32Audible distance (3D effects).
inner_radius: f32Full-volume distance.
sounds: Vec<EffectSound>The timeline’s sounds.
max_length: i64The effect’s length in microseconds; 0 when a sound loops (the effect never ends). The engine computes it when it compiles the effect.
Original: Audio::SoundEffect::Compile, Runtime 0x1800e31f0.
Trait Implementations§
Source§impl Clone for SoundEffect
impl Clone for SoundEffect
Source§fn clone(&self) -> SoundEffect
fn clone(&self) -> SoundEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SoundEffect
impl Debug for SoundEffect
Source§impl PartialEq for SoundEffect
impl PartialEq for SoundEffect
impl StructuralPartialEq for SoundEffect
Auto Trait Implementations§
impl Freeze for SoundEffect
impl RefUnwindSafe for SoundEffect
impl Send for SoundEffect
impl Sync for SoundEffect
impl Unpin for SoundEffect
impl UnsafeUnpin for SoundEffect
impl UnwindSafe for SoundEffect
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