[−][src]Struct alto::Alto
This struct is the entry point of the API. Instantiating it will load an OpenAL implementation. From here, available devices can be queried and opened.
Methods
impl Alto
[src]
pub fn load_default() -> AltoResult<Alto>
[src]
Load the default OpenAL implementation for the platform. This will prefer OpenAL-Soft if it is present, otherwise it will search for a generic implementation.
pub fn load<P: AsRef<Path>>(path: P) -> AltoResult<Alto>
[src]
Loads a specific OpenAL implementation from a specififed path.
pub fn raw_api(&self) -> &AlApi
[src]
Raw entry points of the OpenAL API.
pub fn default_output(&self) -> Option<CString>
[src]
alcGetString(ALC_DEFAULT_DEVICE_SPECIFIER)
pub fn default_capture(&self) -> Option<CString>
[src]
alcGetString(ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER)
pub fn enumerate_outputs(&self) -> Vec<CString>
[src]
alcGetString(ALC_DEVICE_SPECIFIER)
pub fn enumerate_captures(&self) -> Vec<CString>
[src]
alcGetString(ALC_CAPTURE_DEVICE_SPECIFIER)
pub fn open(&self, spec: Option<&CStr>) -> AltoResult<OutputDevice>
[src]
alcOpenDevice()
pub fn open_loopback<F: LoopbackFrame>(
&self,
spec: Option<&CStr>
) -> AltoResult<LoopbackDevice<F>>
[src]
&self,
spec: Option<&CStr>
) -> AltoResult<LoopbackDevice<F>>
alcLoopbackOpenDeviceSOFT()
Requires ALC_SOFT_loopback
pub fn open_capture<F: StandardFrame>(
&self,
spec: Option<&CStr>,
freq: ALCuint,
len: ALCsizei
) -> AltoResult<Capture<F>>
[src]
&self,
spec: Option<&CStr>,
freq: ALCuint,
len: ALCsizei
) -> AltoResult<Capture<F>>
alcCaptureOpenDevice()
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,