Struct fmod::Reverb3D

source ·
pub struct Reverb3D { /* private fields */ }

Implementations§

source§

impl Reverb3D

source

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.

source

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.

source

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.

source

pub fn get_properties(&self) -> Result<ReverbProperties>

Retrieves the environmental properties of a reverb sphere.

See the 3D Reverb guide for more information.

source

pub fn set_active(&self, active: bool) -> Result<()>

Sets the active state.

See the 3D Reverb guide for more information.

source

pub fn get_active(&self) -> Result<bool>

Retrieves the active state.

See the 3D Reverb guide for more information.

source

pub fn set_raw_userdata(&self, userdata: *mut c_void) -> Result<()>

source

pub fn get_raw_userdata(&self) -> Result<*mut c_void>

source

pub fn release(&self) -> Result<()>

Releases the memory for a reverb object and makes it inactive.

If you release all Reverb3D objects and have not added a new Reverb3D object, crate::System::set_reverb_properties should be called to reset the reverb properties.

source§

impl Reverb3D

source

pub fn set_userdata(&self, userdata: Userdata) -> Result<()>

source

pub fn get_userdata(&self) -> Result<Option<Userdata>>

Trait Implementations§

source§

impl Clone for Reverb3D

source§

fn clone(&self) -> Reverb3D

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Reverb3D

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<*mut FMOD_REVERB3D> for Reverb3D

source§

fn from(value: *mut FMOD_REVERB3D) -> Self

Converts to this type from the input type.
source§

impl From<Reverb3D> for *mut FMOD_REVERB3D

source§

fn from(value: Reverb3D) -> Self

Converts to this type from the input type.
source§

impl Hash for Reverb3D

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Reverb3D

source§

fn eq(&self, other: &Reverb3D) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Reverb3D

source§

impl Eq for Reverb3D

source§

impl Send for Reverb3D

source§

impl StructuralPartialEq for Reverb3D

source§

impl Sync for Reverb3D

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Shareable for T
where T: Send + Sync + 'static,