Trait alto::DeviceTrait
[−]
[src]
pub unsafe trait DeviceTrait { fn alto(&self) -> &Alto; fn specifier(&self) -> &CStr; fn as_raw(&self) -> *mut ALCdevice; fn is_extension_present(&self, _: Alc) -> bool; fn connected(&self) -> AltoResult<bool>; fn enumerate_soft_hrtfs(&self) -> AltoResult<Vec<CString>>; fn soft_hrtf_status(&self) -> AltoResult<SoftHrtfStatus>; fn max_auxiliary_sends(&self) -> AltoResult<ALCint>; }
Common capabilities expoed by both real and loopback devices.
Required Methods
fn alto(&self) -> &Alto
Alto instance from which this device was opened.
fn specifier(&self) -> &CStr
Specifier string used to open this device.
fn as_raw(&self) -> *mut ALCdevice
Raw handle as exposed by OpenAL.
fn is_extension_present(&self, _: Alc) -> bool
alcIsExtensionPresent()
fn connected(&self) -> AltoResult<bool>
alcGetIntegerv(ALC_CONNECTED)
Requires ALC_EXT_disconnect
fn enumerate_soft_hrtfs(&self) -> AltoResult<Vec<CString>>
alcGetStringiSOFT(ALC_HRTF_SPECIFIER_SOFT)
Requires ALC_SOFT_HRTF
fn soft_hrtf_status(&self) -> AltoResult<SoftHrtfStatus>
alcGetIntegerv(ALC_HRTF_STATUS_SOFT)
Requires ALC_SOFT_HRTF
fn max_auxiliary_sends(&self) -> AltoResult<ALCint>
alcGetIntegerv(ALC_MAX_AUXILIARY_SENDS)
Requires ALC_EXT_EFX
Trait Implementations
impl<'a> PartialEq for DeviceTrait + 'a
[src]
fn eq(&self, other: &DeviceTrait + '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 !=
.
impl Eq for DeviceTrait
[src]
Implementors
impl<'a> DeviceTrait for Device<'a>
impl<'a, F: LoopbackFrame> DeviceTrait for LoopbackDevice<'a, F>