pub struct SoundData {
pub name: String,
pub volume: f32,
pub looping: bool,
pub is_3d: bool,
pub auto_start: bool,
pub sound_type: u8,
pub buffer_name: Option<String>,
pub position: [f32; 3],
pub min_falloff: f32,
pub max_falloff: f32,
pub soft_region: Option<String>,
}Expand description
Parsed sound data — minimal fields for logging.
Fields§
§name: String§volume: f32§looping: bool§is_3d: bool§auto_start: bool§sound_type: u8§buffer_name: Option<String>Name of the sound buffer (WAV/OGG file reference).
position: [f32; 3]World position for 3D sounds (from scene object transform).
min_falloff: f32Min falloff distance (full volume within this range).
max_falloff: f32Max falloff distance (silent beyond this range).
soft_region: Option<String>Soft volume region key name (for volume-based attenuation). C++ ref: plSound::fSoftRegion → plSoftVolume, read at plSound.cpp:1263
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SoundData
impl RefUnwindSafe for SoundData
impl Send for SoundData
impl Sync for SoundData
impl Unpin for SoundData
impl UnsafeUnpin for SoundData
impl UnwindSafe for SoundData
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