Struct alto::SoftPauseLock
[−]
[src]
pub struct SoftPauseLock<'a: 'd, 'd>(_);
An RAII guard that keeps a device paused. When this lock is dropped, the device will resume playback.
Methods from Deref<Target=Device<'a>>
fn new_context<A: Into<Option<ContextAttrs>>>(&self,
attrs: A)
-> AltoResult<Context>
attrs: A)
-> AltoResult<Context>
Create a new context from this device.
fn soft_pause<'d>(&'d self) -> AltoResult<SoftPauseLock<'a, 'd>>
Pause output of this device and return a lock. Output will resume when this lock is dropped.
fn soft_reset<A: Into<Option<ContextAttrs>>>(&self, attrs: A) -> AltoResult<()>
Attempt to reset the device with new attributes.
Requires the ALC_SOFT_HRTF
.
Trait Implementations
impl<'a: 'd, 'd> Deref for SoftPauseLock<'a, 'd>
[src]
type Target = Device<'a>
The resulting type after dereferencing
fn deref(&self) -> &Device<'a>
The method called to dereference a value