Struct alto::DeferLock [−][src]
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]
pub fn device(&self) -> &Device
The device from which this context was created.
pub fn as_raw(&self) -> *mut ALCcontext
[src]
pub fn as_raw(&self) -> *mut ALCcontext
Raw context pointer as provided by OpenAL.
pub fn is_extension_present(&self, ext: Al) -> bool
[src]
pub fn is_extension_present(&self, ext: Al) -> bool
alIsExtensionPresent()
pub fn distance_model(&self) -> DistanceModel
[src]
pub fn distance_model(&self) -> DistanceModel
alGetInteger(AL_DISTANCE_MODEL)
pub fn set_distance_model(&self, value: DistanceModel)
[src]
pub fn set_distance_model(&self, value: DistanceModel)
alDistanceModel()
pub fn using_source_distance_model(&self) -> bool
[src]
pub fn using_source_distance_model(&self) -> bool
alIsEnabled(AL_SOURCE_DISTANCE_MODEL)
Requires AL_EXT_source_distance_model
pub fn use_source_distance_model(&self, value: bool) -> AltoResult<()>
[src]
pub fn use_source_distance_model(&self, value: bool) -> AltoResult<()>
alEnable/alDisable(AL_SOURCE_DISTANCE_MODEL)
Requires AL_EXT_source_distance_model
pub fn doppler_factor(&self) -> f32
[src]
pub fn doppler_factor(&self) -> f32
alGetFloat(AL_DOPPLER_FACTOR)
pub fn set_doppler_factor(&self, value: f32) -> AltoResult<()>
[src]
pub fn set_doppler_factor(&self, value: f32) -> AltoResult<()>
alDopplerFactor()
pub fn speed_of_sound(&self) -> f32
[src]
pub fn speed_of_sound(&self) -> f32
alGetFloat(AL_SPEED_OF_SOUND)
pub fn set_speed_of_sound(&self, value: f32) -> AltoResult<()>
[src]
pub fn set_speed_of_sound(&self, value: f32) -> AltoResult<()>
alSpeedOfSound()
pub fn gain(&self) -> f32
[src]
pub fn gain(&self) -> f32
alGetListenerv(AL_GAIN)
pub fn set_gain(&self, value: f32) -> AltoResult<()>
[src]
pub fn set_gain(&self, value: f32) -> AltoResult<()>
alListenerf(AL_GAIN)
pub fn position<V: From<[f32; 3]>>(&self) -> V
[src]
pub fn position<V: From<[f32; 3]>>(&self) -> V
alGetListenerfv(AL_POSITION)
pub fn set_position<V: Into<[f32; 3]>>(&self, value: V) -> AltoResult<()>
[src]
pub fn set_position<V: Into<[f32; 3]>>(&self, value: V) -> AltoResult<()>
alListenerfv(AL_POSITION)
pub fn velocity<V: From<[f32; 3]>>(&self) -> V
[src]
pub fn velocity<V: From<[f32; 3]>>(&self) -> V
alGetListenerfv(AL_VELOCITY)
pub fn set_velocity<V: Into<[f32; 3]>>(&self, value: V) -> AltoResult<()>
[src]
pub fn set_velocity<V: Into<[f32; 3]>>(&self, value: V) -> AltoResult<()>
alListenerfv(AL_VELOCITY)
pub fn orientation<V: From<[f32; 3]>>(&self) -> (V, V)
[src]
pub fn orientation<V: From<[f32; 3]>>(&self) -> (V, V)
alGetListenerfv(AL_ORIENTATION)
pub fn set_orientation<V: Into<[f32; 3]>>(
&self,
value: (V, V)
) -> AltoResult<()>
[src]
pub fn set_orientation<V: Into<[f32; 3]>>(
&self,
value: (V, V)
) -> AltoResult<()>
alListenerfv(AL_ORIENTATION)
pub fn soft_gain_limit(&self) -> AltoResult<f32>
[src]
pub fn soft_gain_limit(&self) -> AltoResult<f32>
alGetListenerf(AL_GAIN_LIMIT_SOFT)
Requires AL_SOFT_gain_clamp_ex
pub fn enumerate_soft_resamplers(&self) -> Vec<CString>
[src]
pub fn enumerate_soft_resamplers(&self) -> Vec<CString>
alGetStringiSOFT(AL_RESAMPLER_NAME_SOFT)
Requires AL_SOFT_source_resampler
pub fn meters_per_unit(&self) -> f32
[src]
pub fn meters_per_unit(&self) -> f32
alGetListenerf(AL_METERS_PER_UNIT)
Requires ALC_EXT_EFX
pub fn set_meters_per_unit(&self, value: f32) -> AltoResult<()>
[src]
pub fn set_meters_per_unit(&self, value: f32) -> AltoResult<()>
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]
pub fn new_buffer<F: SampleFrame, B: AsBufferData<F>>(
&self,
data: B,
freq: i32
) -> AltoResult<Buffer>
alGenBuffers()
To ensure well defined state, the buffer is assigned data immediately.
pub fn new_static_source(&self) -> AltoResult<StaticSource>
[src]
pub fn new_static_source(&self) -> AltoResult<StaticSource>
alGenSources()
pub fn new_streaming_source(&self) -> AltoResult<StreamingSource>
[src]
pub fn new_streaming_source(&self) -> AltoResult<StreamingSource>
alGenSources()
pub fn defer_updates(&self) -> DeferLock
[src]
pub fn defer_updates(&self) -> DeferLock
alDeferUpdatesSOFT()
Requires AL_SOFT_deferred_updates
pub fn new_aux_effect_slot(&self) -> AltoResult<AuxEffectSlot>
[src]
pub fn new_aux_effect_slot(&self) -> AltoResult<AuxEffectSlot>
alGenAuxiliaryEffectSlots()
Requires ALC_EXT_EFX
pub fn new_effect<E: Effect>(&self) -> AltoResult<E>
[src]
pub fn new_effect<E: Effect>(&self) -> AltoResult<E>
alGenEffects()
Requires ALC_EXT_EFX
pub fn new_filter<F: Filter>(&self) -> AltoResult<F>
[src]
pub fn new_filter<F: Filter>(&self) -> AltoResult<F>
alGenFilters()
Requires ALC_EXT_EFX
Trait Implementations
impl<'c> Deref for DeferLock<'c>
[src]
impl<'c> Deref for DeferLock<'c>
type Target = Context
The resulting type after dereferencing.
fn deref(&self) -> &Context
[src]
fn deref(&self) -> &Context
Dereferences the value.
impl<'c> Drop for DeferLock<'c>
[src]
impl<'c> Drop for DeferLock<'c>