Struct alto::LoopbackDevice [−][src]
pub struct LoopbackDevice<F: LoopbackFrame>(_, _);
A loopback device that outputs audio to a memory buffer.
Requires ALC_SOFT_loopback
Methods
impl<F: LoopbackFrame> LoopbackDevice<F>
[src]
impl<F: LoopbackFrame> LoopbackDevice<F>
pub fn new_context(
&self,
freq: ALCint,
attrs: Option<LoopbackAttrs>
) -> AltoResult<Context>
[src]
pub fn new_context(
&self,
freq: ALCint,
attrs: Option<LoopbackAttrs>
) -> AltoResult<Context>
alcCreateContext()
pub fn soft_render_samples<R: AsBufferDataMut<F>>(&mut self, data: R) -> usize
[src]
pub fn soft_render_samples<R: AsBufferDataMut<F>>(&mut self, data: R) -> usize
alcRenderSamplesSOFT()
Returns the number of sample frames rendered to the slice.
pub fn soft_reset(
&self,
freq: ALCint,
attrs: Option<LoopbackAttrs>
) -> AltoResult<()>
[src]
pub fn soft_reset(
&self,
freq: ALCint,
attrs: Option<LoopbackAttrs>
) -> AltoResult<()>
alcDevicePauseSOFT()
Requires ALC_SOFT_HRTF
Trait Implementations
impl<F: LoopbackFrame> DeviceObject for LoopbackDevice<F>
[src]
impl<F: LoopbackFrame> DeviceObject for LoopbackDevice<F>
fn alto(&self) -> &Alto
[src]
fn alto(&self) -> &Alto
AltoInner instance from which this device was opened.
fn specifier(&self) -> Option<&CStr>
[src]
fn specifier(&self) -> Option<&CStr>
Specifier string used to open this device.
fn as_raw(&self) -> *mut ALCdevice
[src]
fn as_raw(&self) -> *mut ALCdevice
Raw handle as exposed by OpenAL.
fn connected(&self) -> AltoResult<bool>
[src]
fn connected(&self) -> AltoResult<bool>
alcGetIntegerv(ALC_CONNECTED)
Requires ALC_EXT_disconnect
Read more
fn is_extension_present(&self, ext: Alc) -> bool
[src]
fn is_extension_present(&self, ext: Alc) -> bool
alcIsExtensionPresent()
fn enumerate_soft_hrtfs(&self) -> Vec<CString>
[src]
fn enumerate_soft_hrtfs(&self) -> Vec<CString>
alcGetStringiSOFT(ALC_HRTF_SPECIFIER_SOFT)
Requires ALC_SOFT_HRTF
Read more
fn soft_hrtf_status(&self) -> SoftHrtfStatus
[src]
fn soft_hrtf_status(&self) -> SoftHrtfStatus
alcGetIntegerv(ALC_HRTF_STATUS_SOFT)
Requires ALC_SOFT_HRTF
Read more
fn soft_output_limiter(&self) -> bool
[src]
fn soft_output_limiter(&self) -> bool
alcGetIntegerv(ALC_OUTPUT_LIMITER_SOFT)
Requires ALC_SOFT_output_limiter
Read more
fn max_aux_sends(&self) -> ALCint
[src]
fn max_aux_sends(&self) -> ALCint
alcGetIntegerv(ALC_MAX_AUXILIARY_SENDS)
Requires ALC_EXT_EFX
Read more
fn to_device(&self) -> Device
[src]
fn to_device(&self) -> Device
Return a new handle to this device.
impl<F: LoopbackFrame> PartialEq for LoopbackDevice<F>
[src]
impl<F: LoopbackFrame> PartialEq for LoopbackDevice<F>
fn eq(&self, other: &LoopbackDevice<F>) -> bool
[src]
fn eq(&self, other: &LoopbackDevice<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[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<F: LoopbackFrame> Eq for LoopbackDevice<F>
[src]
impl<F: LoopbackFrame> Eq for LoopbackDevice<F>
impl<F: LoopbackFrame> Send for LoopbackDevice<F>
[src]
impl<F: LoopbackFrame> Send for LoopbackDevice<F>
impl<F: LoopbackFrame> Sync for LoopbackDevice<F>
[src]
impl<F: LoopbackFrame> Sync for LoopbackDevice<F>