Struct alto::SuspendLock
[−]
[src]
pub struct SuspendLock<'d: 'c, 'c>(_);
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<'d>>
fn device(&self) -> &DeviceTrait + 'd
The device from which this context was created.
fn as_raw(&self) -> *mut ALCcontext
Raw context pointer as provided by OpenAL.
fn is_extension_present(&self, ext: Al) -> bool
alIsExtensionPresent()
fn distance_model(&self) -> AltoResult<DistanceModel>
alGetInteger(AL_DISTANCE_MODEL)
fn set_distance_model(&self, value: DistanceModel) -> AltoResult<()>
alDistanceModel()
fn using_source_distance_model(&self) -> AltoResult<bool>
alIsEnabled(AL_SOURCE_DISTANCE_MODEL)
Requires AL_EXT_source_distance_model
fn use_source_distance_model(&self, value: bool) -> AltoResult<()>
alEnable/alDisable(AL_SOURCE_DISTANCE_MODEL)
Requires AL_EXT_source_distance_model
fn doppler_factor(&self) -> AltoResult<f32>
alGetFloat(AL_DOPPLER_FACTOR)
fn set_doppler_factor(&self, value: f32) -> AltoResult<()>
alDopplerFactor()
fn speed_of_sound(&self) -> AltoResult<f32>
alGetFloat(AL_SPEED_OF_SOUND)
fn set_speed_of_sound(&self, value: f32) -> AltoResult<()>
alSpeedOfSound()
fn gain(&self) -> AltoResult<f32>
alGetListenerv(AL_GAIN)
fn set_gain(&self, value: f32) -> AltoResult<()>
alListenerf(AL_GAIN)
fn position<V: From<[f32; 3]>>(&self) -> AltoResult<V>
alGetListenerfv(AL_POSITION)
fn set_position<V: Into<[f32; 3]>>(&self, value: V) -> AltoResult<()>
alListenerfv(AL_POSITION)
fn velocity<V: From<[f32; 3]>>(&self) -> AltoResult<V>
alGetListenerfv(AL_VELOCITY)
fn set_velocity<V: Into<[f32; 3]>>(&self, value: V) -> AltoResult<()>
alListenerfv(AL_VELOCITY)
fn orientation<V: From<[f32; 3]>>(&self) -> AltoResult<(V, V)>
alGetListenerfv(AL_ORIENTATION)
fn set_orientation<V: Into<[f32; 3]>>(&self, value: (V, V)) -> AltoResult<()>
alListenerfv(AL_ORIENTATION)
fn meters_per_unit(&self) -> AltoResult<f32>
alGetListenerf(AL_METERS_PER_UNIT)
Requires ALC_EXT_EFX
fn set_meters_per_unit(&self, value: f32) -> AltoResult<()>
alListenerf(AL_METERS_PER_UNIT)
Requires ALC_EXT_EFX
fn new_buffer<'c>(&'c self) -> AltoResult<Buffer<'d, 'c>>
alGenBuffers()
fn new_static_source(&self) -> AltoResult<StaticSource>
alGenSources()
fn new_streaming_source(&self) -> AltoResult<StreamingSource>
alGenSources()
fn play_all<'c, S, I>(&self, srcs: I) -> AltoResult<()> where 'd: 'c,
S: SourceTrait<'d, 'c>,
I: Iterator,
I::Item: AsRef<S> + AsMut<S>
S: SourceTrait<'d, 'c>,
I: Iterator,
I::Item: AsRef<S> + AsMut<S>
alSourcePlayv()
fn pause_all<'c, S, I>(&self, srcs: I) -> AltoResult<()> where 'd: 'c,
S: SourceTrait<'d, 'c>,
I: Iterator,
I::Item: AsRef<S> + AsMut<S>
S: SourceTrait<'d, 'c>,
I: Iterator,
I::Item: AsRef<S> + AsMut<S>
alSourcePausev()
fn stop_all<'c, S, I>(&self, srcs: I) -> AltoResult<()> where 'd: 'c,
S: SourceTrait<'d, 'c>,
I: Iterator,
I::Item: AsRef<S> + AsMut<S>
S: SourceTrait<'d, 'c>,
I: Iterator,
I::Item: AsRef<S> + AsMut<S>
alSourceStopv()
fn rewind_all<'c, S, I>(&self, srcs: I) -> AltoResult<()> where 'd: 'c,
S: SourceTrait<'d, 'c>,
I: Iterator,
I::Item: AsRef<S> + AsMut<S>
S: SourceTrait<'d, 'c>,
I: Iterator,
I::Item: AsRef<S> + AsMut<S>
alSourceRewindv()
fn suspend<'c>(&'c self) -> AltoResult<SuspendLock<'d, 'c>>
alcSuspendContext()
or alDeferUpdatesSOFT()
if AL_SOFT_deferred_updates
is available.
fn new_aux_effect_slot<'c>(&'c self) -> AltoResult<AuxEffectSlot<'d, 'c>>
alGenAuxiliaryEffectSlots()
Requires ALC_EXT_EFX
fn new_effect<'c, E: EffectTrait<'d, 'c>>(&'c self) -> AltoResult<E>
alGenEffects()
Requires ALC_EXT_EFX
fn new_filter<'c, F: FilterTrait<'d, 'c>>(&'c self) -> AltoResult<F>
alGenFilters()
Requires ALC_EXT_EFX
Trait Implementations
impl<'d: 'c, 'c> Deref for SuspendLock<'d, 'c>
[src]
type Target = Context<'d>
The resulting type after dereferencing
fn deref(&self) -> &Context<'d>
The method called to dereference a value