[][src]Struct alto::DeferLock

pub struct DeferLock<'c> { /* fields omitted */ }

An RAII lock that will suspend state updates while held. When this lock is dropped, the context will apply all pending updates.

Methods from Deref<Target = Context>

pub fn device(&self) -> &Device[src]

The device from which this context was created.

pub fn as_raw(&self) -> *mut ALCcontext[src]

Raw context pointer as provided by OpenAL.

pub fn is_extension_present(&self, ext: Al) -> bool[src]

alIsExtensionPresent()

pub fn distance_model(&self) -> DistanceModel[src]

alGetInteger(AL_DISTANCE_MODEL)

pub fn set_distance_model(&self, value: DistanceModel)[src]

alDistanceModel()

pub fn using_source_distance_model(&self) -> bool[src]

alIsEnabled(AL_SOURCE_DISTANCE_MODEL) Requires AL_EXT_source_distance_model

pub fn use_source_distance_model(&self, value: bool) -> AltoResult<()>[src]

alEnable/alDisable(AL_SOURCE_DISTANCE_MODEL) Requires AL_EXT_source_distance_model

pub fn doppler_factor(&self) -> f32[src]

alGetFloat(AL_DOPPLER_FACTOR)

pub fn set_doppler_factor(&self, value: f32) -> AltoResult<()>[src]

alDopplerFactor()

pub fn speed_of_sound(&self) -> f32[src]

alGetFloat(AL_SPEED_OF_SOUND)

pub fn set_speed_of_sound(&self, value: f32) -> AltoResult<()>[src]

alSpeedOfSound()

pub fn gain(&self) -> f32[src]

alGetListenerv(AL_GAIN)

pub fn set_gain(&self, value: f32) -> AltoResult<()>[src]

alListenerf(AL_GAIN)

pub fn position<V: From<[f32; 3]>>(&self) -> V[src]

alGetListenerfv(AL_POSITION)

pub fn set_position<V: Into<[f32; 3]>>(&self, value: V) -> AltoResult<()>[src]

alListenerfv(AL_POSITION)

pub fn velocity<V: From<[f32; 3]>>(&self) -> V[src]

alGetListenerfv(AL_VELOCITY)

pub fn set_velocity<V: Into<[f32; 3]>>(&self, value: V) -> AltoResult<()>[src]

alListenerfv(AL_VELOCITY)

pub fn orientation<V: From<[f32; 3]>>(&self) -> (V, V)[src]

alGetListenerfv(AL_ORIENTATION)

pub fn set_orientation<V: Into<[f32; 3]>>(
    &self,
    value: (V, V)
) -> AltoResult<()>
[src]

alListenerfv(AL_ORIENTATION)

pub fn soft_gain_limit(&self) -> AltoResult<f32>[src]

alGetListenerf(AL_GAIN_LIMIT_SOFT) Requires AL_SOFT_gain_clamp_ex

pub fn enumerate_soft_resamplers(&self) -> Vec<CString>[src]

alGetStringiSOFT(AL_RESAMPLER_NAME_SOFT) Requires AL_SOFT_source_resampler

pub fn meters_per_unit(&self) -> f32[src]

alGetListenerf(AL_METERS_PER_UNIT) Requires ALC_EXT_EFX

pub fn set_meters_per_unit(&self, value: f32) -> AltoResult<()>[src]

alListenerf(AL_METERS_PER_UNIT) Requires ALC_EXT_EFX

pub fn new_buffer<F: SampleFrame, B: AsBufferData<F>>(
    &self,
    data: B,
    freq: i32
) -> AltoResult<Buffer>
[src]

alGenBuffers() To ensure well defined state, the buffer is assigned data immediately.

pub fn new_static_source(&self) -> AltoResult<StaticSource>[src]

alGenSources()

pub fn new_streaming_source(&self) -> AltoResult<StreamingSource>[src]

alGenSources()

pub fn defer_updates(&self) -> DeferLock[src]

alDeferUpdatesSOFT() Requires AL_SOFT_deferred_updates

pub fn new_aux_effect_slot(&self) -> AltoResult<AuxEffectSlot>[src]

alGenAuxiliaryEffectSlots() Requires ALC_EXT_EFX

pub fn new_effect<E: Effect>(&self) -> AltoResult<E>[src]

alGenEffects() Requires ALC_EXT_EFX

pub fn new_filter<F: Filter>(&self) -> AltoResult<F>[src]

alGenFilters() Requires ALC_EXT_EFX

Trait Implementations

impl<'c> Drop for DeferLock<'c>[src]

impl<'c> Deref for DeferLock<'c>[src]

type Target = Context

The resulting type after dereferencing.

Auto Trait Implementations

impl<'c> Send for DeferLock<'c>

impl<'c> Sync for DeferLock<'c>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T