Struct alto::Device
[−]
[src]
pub struct Device<'a> { /* fields omitted */ }
A regular output device. This is typically a device 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>
alcCreateContext()
fn soft_pause<'d>(&'d self) -> AltoResult<SoftPauseLock<'a, 'd>>
alcDevicePauseSOFT()
Requires ALC_SOFT_pause_device
fn soft_reset<A: Into<Option<ContextAttrs>>>(&self, attrs: A) -> AltoResult<()>
alcDevicePauseSOFT()
Requires 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 as_raw(&self) -> *mut ALCdevice
Raw handle as exposed by OpenAL.
fn is_extension_present(&self, ext: Alc) -> bool
alcIsExtensionPresent()
fn extensions(&self) -> &AlcCache
fn connected(&self) -> AltoResult<bool>
alcGetIntegerv(ALC_CONNECTED)
Requires ALC_EXT_disconnect
Read more
fn enumerate_soft_hrtfs(&self) -> AltoResult<Vec<CString>>
alcGetStringiSOFT(ALC_HRTF_SPECIFIER_SOFT)
Requires ALC_SOFT_HRTF
Read more
fn soft_hrtf_status(&self) -> AltoResult<SoftHrtfStatus>
alcGetIntegerv(ALC_HRTF_STATUS_SOFT)
Requires ALC_SOFT_HRTF
Read more
fn max_auxiliary_sends(&self) -> AltoResult<ALCint>
alcGetIntegerv(ALC_MAX_AUXILIARY_SENDS)
Requires ALC_EXT_EFX
Read more
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 !=
.