pub struct Reverb3D { /* private fields */ }
Expand description
An interface that manages virtual 3D reverb spheres.
See the 3D Reverb Guide for more information.
Implementations§
Source§impl Reverb3D
impl Reverb3D
Sourcepub unsafe fn from_ffi(value: *mut FMOD_REVERB3D) -> Self
pub unsafe fn from_ffi(value: *mut FMOD_REVERB3D) -> Self
§Safety
value
must be a valid pointer either aquired from Self::as_ptr
or FMOD.
§Panics
Panics if value
is null.
Sourcepub fn as_ptr(self) -> *mut FMOD_REVERB3D
pub fn as_ptr(self) -> *mut FMOD_REVERB3D
Converts self
into its raw representation.
Source§impl Reverb3D
impl Reverb3D
Sourcepub fn set_3d_attributes(
&self,
position: Option<Vector>,
min_distance: c_float,
max_distance: c_float,
) -> Result<()>
pub fn set_3d_attributes( &self, position: Option<Vector>, min_distance: c_float, max_distance: c_float, ) -> Result<()>
Sets the 3D attributes of a reverb sphere.
See the 3D Reverb guide for more information.
When the position of the listener is less than max_distance
away from the position of one or more reverb objects,
the listener’s 3D reverb properties are a weighted combination of those reverb objects.
Otherwise, the reverb dsp will use the global reverb settings.
Sourcepub fn get_3d_attributes(&self) -> Result<(Vector, c_float, c_float)>
pub fn get_3d_attributes(&self) -> Result<(Vector, c_float, c_float)>
Retrieves the 3D attributes of a reverb sphere.
See the 3D Reverb guide for more information.
Sourcepub fn set_properties(&self, properties: ReverbProperties) -> Result<()>
pub fn set_properties(&self, properties: ReverbProperties) -> Result<()>
Sets the environmental properties of a reverb sphere.
Reverb presets are available, see the associated constants of ReverbProperties
.
Sourcepub fn get_properties(&self) -> Result<ReverbProperties>
pub fn get_properties(&self) -> Result<ReverbProperties>
Retrieves the environmental properties of a reverb sphere.
See the 3D Reverb guide for more information.
Sourcepub fn set_active(&self, active: bool) -> Result<()>
pub fn set_active(&self, active: bool) -> Result<()>
Sets the active state.
See the 3D Reverb guide for more information.
Sourcepub fn get_active(&self) -> Result<bool>
pub fn get_active(&self) -> Result<bool>
Retrieves the active state.
See the 3D Reverb guide for more information.
Sourcepub fn get_userdata(&self) -> Result<*mut c_void>
pub fn get_userdata(&self) -> Result<*mut c_void>
Retrieves user data.
Trait Implementations§
impl Copy for Reverb3D
impl Eq for Reverb3D
impl Send for Reverb3D
thread-unsafe
only.impl StructuralPartialEq for Reverb3D
impl Sync for Reverb3D
thread-unsafe
only.