#[repr(C)]pub struct Attributes3DMulti {
pub absolute: Attributes3D,
/* private fields */
}
Expand description
3D attributes data structure for multiple listeners.
The studio::System
sets this parameter automatically when an studio::EventInstance
position changes.
However, if you are using the core API’s 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§
§absolute: Attributes3D
Position of the sound in world coordinates.
Implementations§
Source§impl Attributes3DMulti
impl Attributes3DMulti
Sourcepub fn new(data: &[(Attributes3D, c_float)], absolute: Attributes3D) -> Self
pub fn new(data: &[(Attributes3D, c_float)], absolute: Attributes3D) -> Self
Create a new Attributes3DMulti
.
Only values from data[..FMOD_MAX_LISTENERS]
will be read
Sourcepub fn relative(&self) -> &[Attributes3D]
pub fn relative(&self) -> &[Attributes3D]
Position of the sound relative to the listeners.
Sourcepub fn relative_mut(&mut self) -> &mut [Attributes3D]
pub fn relative_mut(&mut self) -> &mut [Attributes3D]
Position of the sound relative to the listeners.
Sourcepub fn weight(&self) -> &[c_float] ⓘ
pub fn weight(&self) -> &[c_float] ⓘ
Weighting of the listeners where 0 means listener has no contribution and 1 means full contribution.
Sourcepub fn weight_mut(&mut self) -> &mut [c_float] ⓘ
pub fn weight_mut(&mut self) -> &mut [c_float] ⓘ
Weighting of the listeners where 0 means listener has no contribution and 1 means full contribution.
Sourcepub fn listener_count(&self) -> usize
pub fn listener_count(&self) -> usize
Number of listeners.
Trait Implementations§
Source§impl Clone for Attributes3DMulti
impl Clone for Attributes3DMulti
Source§fn clone(&self) -> Attributes3DMulti
fn clone(&self) -> Attributes3DMulti
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Attributes3DMulti
impl Debug for Attributes3DMulti
Source§impl PartialEq for Attributes3DMulti
impl PartialEq for Attributes3DMulti
Source§impl ReadableParameter for Attributes3DMulti
impl ReadableParameter for Attributes3DMulti
Source§fn get_parameter_string(dsp: Dsp, index: c_int) -> Result<Utf8CString>
fn get_parameter_string(dsp: Dsp, index: c_int) -> Result<Utf8CString>
index
.