#[repr(C)]pub struct DspAttributes3D {
pub relative: Attributes3D,
pub absolute: Attributes3D,
}
Expand description
3D attributes data structure.
The studio::System
sets this parameter automatically when an studio::EventInstance
position changes.
However, if you are using the core System
and not the studio::System
, you must set this DSP parameter explicitly.
Attributes must use a coordinate system with the positive Y axis being up and the positive X axis being right.
The FMOD Engine converts passed-in coordinates to left-handed for the plug-in if the system was initialized with the FMOD_INIT_3D_RIGHTHANDED
flag.
When using a listener attenuation position, the direction of the relative attributes will be relative to the listener position and the length will be the distance to the attenuation position.
Fields§
§relative: Attributes3D
Position of the sound relative to the listener.
absolute: Attributes3D
Position of the sound in world coordinates.
Trait Implementations§
Source§impl Clone for DspAttributes3D
impl Clone for DspAttributes3D
Source§fn clone(&self) -> DspAttributes3D
fn clone(&self) -> DspAttributes3D
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DspAttributes3D
impl Debug for DspAttributes3D
Source§impl PartialEq for DspAttributes3D
impl PartialEq for DspAttributes3D
Source§impl ReadableParameter for DspAttributes3D
impl ReadableParameter for DspAttributes3D
Source§fn get_parameter_string(dsp: Dsp, index: c_int) -> Result<Utf8CString>
fn get_parameter_string(dsp: Dsp, index: c_int) -> Result<Utf8CString>
index
.