Struct alto::Device
[−]
[src]
pub struct Device<'a> { /* fields omitted */ }
An audio device as exposed by the OpenAL implementation. This will typically be a device endpoint as reported by the operating system.
Methods
impl<'a> Device<'a>
[src]
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> DeviceTrait for Device<'a>
[src]
fn alto(&self) -> &Alto
Alto instance from which this device was opened.
fn specifier(&self) -> &CStr
Specifier string used to open this device.
fn raw_device(&self) -> *mut ALCdevice
Raw handle as exposed by OpenAL.
fn is_extension_present(&self, ext: Alc) -> bool
Query the presence of an ALC extension.
fn connected(&self) -> AltoResult<bool>
Polls the connection state. If this ever returns false, then the device must be closed and reopened; it will not become true again. Read more
fn enumerate_soft_hrtfs(&self) -> AltoResult<Vec<CString>>
Enumerate the supported HRTF functions.
fn soft_hrtf_status(&self) -> AltoResult<SoftHrtfStatus>
Current HRTF mode.
impl<'a> PartialEq for Device<'a>
[src]
fn eq(&self, other: &Device<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.