ReverbProperties

Struct ReverbProperties 

Source
#[repr(C)]
pub struct ReverbProperties { pub decay_time: c_float, pub early_delay: c_float, pub late_delay: c_float, pub hf_reference: c_float, pub hf_decay_ratio: c_float, pub diffusion: c_float, pub density: c_float, pub low_shelf_frequency: c_float, pub low_shelf_gain: c_float, pub high_cut: c_float, pub early_late_mix: c_float, pub wet_level: c_float, }
Expand description

Structure defining a reverb environment.

Fields§

§decay_time: c_float

Reverberation decay time.

§early_delay: c_float

Initial reflection delay time.

§late_delay: c_float

Late reverberation delay time relative to initial reflection.

§hf_reference: c_float

Reference high frequency.

§hf_decay_ratio: c_float

High-frequency to mid-frequency decay time ratio.

§diffusion: c_float

Value that controls the echo density in the late reverberation decay.

§density: c_float

Value that controls the modal density in the late reverberation decay.

§low_shelf_frequency: c_float

Reference low frequency

§low_shelf_gain: c_float

Relative room effect level at low frequencies.

§high_cut: c_float

Relative room effect level at high frequencies.

§early_late_mix: c_float

Early reflections level relative to room effect.

§wet_level: c_float

Room effect level at mid frequencies.

Implementations§

Source§

impl ReverbProperties

Predefined reverb configurations. To simplify usage, and avoid manually selecting reverb parameters, a table of common presets is supplied for ease of use.

Source

pub const OFF: Self

off/disabled.

Source

pub const GENERIC: Self

Generic/default

Source

pub const PADDEDCELL: Self

Padded cell

Source

pub const ROOM: Self

Room

Source

pub const BATHROOM: Self

Bathroom

Source

pub const LIVINGROOM: Self

Living room

Source

pub const STONEROOM: Self

Stone room

Source

pub const AUDITORIUM: Self

Auditorium

Source

pub const CONCERTHALL: Self

Concert hall

Source

pub const CAVE: Self

Cave

Source

pub const ARENA: Self

Arena

Source

pub const HANGAR: Self

Hangar

Source

pub const CARPETTEDHALLWAY: Self

Carpetted hallway

Source

pub const HALLWAY: Self

Hallway

Source

pub const STONECORRIDOR: Self

Stone corridor

Source

pub const ALLEY: Self

Alley

Source

pub const FOREST: Self

Forest

Source

pub const CITY: Self

City

Source

pub const MOUNTAINS: Self

Mountains

Source

pub const QUARRY: Self

Quarry

Source

pub const PLAIN: Self

Plain

Source

pub const PARKINGLOT: Self

Parking lot

Source

pub const SEWERPIPE: Self

Sewer pipe

Source

pub const UNDERWATER: Self

Underwater

Trait Implementations§

Source§

impl Clone for ReverbProperties

Source§

fn clone(&self) -> ReverbProperties

Returns a duplicate 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 ReverbProperties

Source§

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

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

impl Default for ReverbProperties

Source§

fn default() -> ReverbProperties

Returns the “default value” for a type. Read more
Source§

impl From<FMOD_REVERB_PROPERTIES> for ReverbProperties

Source§

fn from(value: FMOD_REVERB_PROPERTIES) -> Self

Converts to this type from the input type.
Source§

impl From<ReverbProperties> for FMOD_REVERB_PROPERTIES

Source§

fn from(value: ReverbProperties) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ReverbProperties

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for ReverbProperties

Source§

fn partial_cmp(&self, other: &ReverbProperties) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for ReverbProperties

Source§

impl StructuralPartialEq for ReverbProperties

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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>,

Source§

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>,

Source§

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.