Struct alto::LoopbackDevice
[−]
[src]
pub struct LoopbackDevice<'a, F: LoopbackFrame> { /* fields omitted */ }
A loopback device as provided by the ALC_SOFT_loopback
extension.
Methods
impl<'a, F: LoopbackFrame> LoopbackDevice<'a, F>
[src]
fn new_context<A: Into<Option<LoopbackAttrs>>>(&self,
freq: ALCint,
attrs: A)
-> AltoResult<Context>
freq: ALCint,
attrs: A)
-> AltoResult<Context>
Create a new context from this device.
fn soft_render_samples<R: AsBufferDataMut<F>>(&mut self,
data: R)
-> AltoResult<()>
data: R)
-> AltoResult<()>
Render audio samples into a buffer.
Requires ALC_SOFT_loopback
.
fn soft_reset<A: Into<Option<LoopbackAttrs>>>(&self,
freq: ALCint,
attrs: A)
-> AltoResult<()>
freq: ALCint,
attrs: A)
-> AltoResult<()>
Attempt to reset the device with new attributes.
Requires the ALC_SOFT_HRTF
.
Trait Implementations
impl<'a, F: LoopbackFrame> DeviceTrait for LoopbackDevice<'a, F>
[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 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 is_extension_present(&self, ext: Alc) -> bool
Query the presence of an ALC extension.
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, F: LoopbackFrame> PartialEq for LoopbackDevice<'a, F>
[src]
fn eq(&self, other: &LoopbackDevice<'a, F>) -> 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 !=
.