ReverbEffect

Struct ReverbEffect 

Source
pub struct ReverbEffect { /* private fields */ }
Expand description

AL_EFFECT_REVERB

Implementations§

Source§

impl ReverbEffect

Source

pub fn set_preset(&mut self, preset: &EaxReverbProperties) -> AltoResult<()>

Set all effect properties based on a reverb preset.

Source

pub fn density(&self) -> f32

alGetEffectf(AL_REVERB_DENSITY)

Source

pub fn set_density(&mut self, value: f32) -> AltoResult<()>

alEffectf(AL_REVERB_DENSITY)

Source

pub fn diffusion(&self) -> f32

alGetEffectf(AL_REVERB_DIFFUSION)

Source

pub fn set_diffusion(&mut self, value: f32) -> AltoResult<()>

alEffectf(AL_REVERB_DIFFUSION)

Source

pub fn gain(&self) -> f32

alGetEffectf(AL_REVERB_GAIN)

Source

pub fn set_gain(&mut self, value: f32) -> AltoResult<()>

alEffectf(AL_REVERB_GAIN)

Source

pub fn gainhf(&self) -> f32

alGetEffectf(AL_REVERB_GAINHF)

Source

pub fn set_gainhf(&mut self, value: f32) -> AltoResult<()>

alEffectf(AL_REVERB_GAINHF)

Source

pub fn decay_time(&self) -> f32

alGetEffectf(AL_REVERB_DECAY_TIME)

Source

pub fn set_decay_time(&mut self, value: f32) -> AltoResult<()>

alEffectf(AL_REVERB_DECAY_TIME)

Source

pub fn decay_hfratio(&self) -> f32

alGetEffectf(AL_REVERB_DECAY_HFRATIO)

Source

pub fn set_decay_hfratio(&mut self, value: f32) -> AltoResult<()>

alEffectf(AL_REVERB_DECAY_HFRATIO)

Source

pub fn reflections_gain(&self) -> f32

alGetEffectf(AL_REVERB_REFLECTIONS_GAIN)

Source

pub fn set_reflections_gain(&mut self, value: f32) -> AltoResult<()>

alEffectf(AL_REVERB_REFLECTIONS_GAIN)

Source

pub fn reflections_delay(&self) -> f32

alGetEffectf(AL_REVERB_REFLECTIONS_DELAY)

Source

pub fn set_reflections_delay(&mut self, value: f32) -> AltoResult<()>

alEffectf(AL_REVERB_REFLECTIONS_DELAY)

Source

pub fn late_reverb_gain(&self) -> f32

alGetEffectf(AL_REVERB_LATE_REVERB_GAIN)

Source

pub fn set_late_reverb_gain(&mut self, value: f32) -> AltoResult<()>

alEffectf(AL_REVERB_LATE_REVERB_GAIN)

Source

pub fn late_reverb_delay(&self) -> f32

alGetEffectf(AL_REVERB_LATE_REVERB_DELAY)

Source

pub fn set_late_reverb_delay(&mut self, value: f32) -> AltoResult<()>

alEffectf(AL_REVERB_LATE_REVERB_DELAY)

Source

pub fn air_absorption_gainhf(&self) -> f32

alGetEffectf(AL_REVERB_AIR_ABSORPTION_GAINHF)

Source

pub fn set_air_absorption_gainhf(&mut self, value: f32) -> AltoResult<()>

alEffectf(AL_REVERB_AIR_ABSORPTION_GAINHF)

Source

pub fn room_rolloff_factor(&self) -> f32

alGetEffectf(AL_REVERB_ROOM_ROLLOFF_FACTOR)

Source

pub fn set_room_rolloff_factor(&mut self, value: f32) -> AltoResult<()>

alEffectf(AL_REVERB_ROOM_ROLLOFF_FACTOR)

Source

pub fn decay_hflimit(&self) -> bool

alGetEffecti(AL_REVERB_DECAY_HFLIMIT)

Source

pub fn set_decay_hflimit(&mut self, value: bool) -> AltoResult<()>

alEffecti(AL_REVERB_DECAY_HFLIMIT)

Trait Implementations§

Source§

impl Drop for ReverbEffect

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Effect for ReverbEffect

Source§

fn context(&self) -> &Context

Context from which this effect was created.
Source§

fn as_raw(&self) -> ALuint

Raw handle as provided by OpenAL.

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, 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.
Source§

impl<T> Erased for T