pub struct SoundVariant {
pub buffer: Option<String>,
pub pitch_min: f32,
pub pitch_max: f32,
pub volume: f32,
}Expand description
One playable variant of a sound (0x18 bytes: buffer, pitch range, volume).
Fields§
§buffer: Option<String>Audio\…\X.rsc:resource SoundBuffer.
pitch_min: f32The lowest pitch, in semitones. GetSoundBuffer draws uniformly in
[pitch_min, pitch_max].
pitch_max: f32The highest pitch, in semitones.
volume: f32The volume.
Trait Implementations§
Source§impl Clone for SoundVariant
impl Clone for SoundVariant
Source§fn clone(&self) -> SoundVariant
fn clone(&self) -> SoundVariant
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 SoundVariant
impl Debug for SoundVariant
Source§impl PartialEq for SoundVariant
impl PartialEq for SoundVariant
impl StructuralPartialEq for SoundVariant
Auto Trait Implementations§
impl Freeze for SoundVariant
impl RefUnwindSafe for SoundVariant
impl Send for SoundVariant
impl Sync for SoundVariant
impl Unpin for SoundVariant
impl UnsafeUnpin for SoundVariant
impl UnwindSafe for SoundVariant
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