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