Struct alto::SuspendLock [] [src]

pub struct SuspendLock<'d: 'c, 'c>(_);

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

Methods from Deref<Target=Context<'d>>

The device from which this context was created.

Raw context pointer as provided by OpenAL.

Query presence of an extension.

Distance model applied to all sources from this context.

Using per-source distance model settings. Requires AL_EXT_source_distance_model.

Doppler factor applied based on relative velocities.

Speed of sound, used for doppler calculations.

Global gain.

Position of the listener.

Velocity of the listener.

Orientation of the listener, consisting of a forward vector and an up vector.

Create a new, empty buffer object.

Create a new static source.

Create a new streaming source.

Begin playing all specified sources simultaneously.

Pause all specified sources simultaneously.

Stop all specified sources simultaneously.

Rewind all specified sources simultaneously.

Suspend state updates for the context, returning a guard object. Until the guard object is dropped, any state changes for the context are deferred. After the guard is dropped, all pending changes will be applied simultaneously.

Trait Implementations

impl<'d: 'c, 'c> Deref for SuspendLock<'d, 'c>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<'d: 'c, 'c> Drop for SuspendLock<'d, 'c>
[src]

A method called when the value goes out of scope. Read more