Struct alto::Alto
[−]
[src]
pub struct Alto { /* fields omitted */ }
This struct is the entry point of the API. Instantiating it will load an OpenAL implementation dynamically. From here, available devices can be queried and opened.
Methods
impl Alto
[src]
fn load_default() -> AltoResult<Alto>
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.
fn load<P: AsRef<Path>>(path: P) -> AltoResult<Alto>
Loads a specific OpenAL implementation from a specififed path.
fn default_output(&self) -> AltoResult<CString>
Get the specifier of the default output device.
fn default_capture(&self) -> AltoResult<CString>
Get the specifier of the default capture device.
fn enumerate_outputs(&self) -> AltoResult<Vec<CString>>
Enumerate available audio outputs detected by the implementation.
fn enumerate_captures(&self) -> AltoResult<Vec<CString>>
Enumerate available audio inputs detected by the implementation.
fn open<'s, S: Into<Option<&'s CStr>>>(&self, spec: S) -> AltoResult<Device>
Open an audio device from a device specifier, or default if None
.
fn open_loopback<'s, S: Into<Option<&'s CStr>>, F: LoopbackFrame>(&self,
spec: S)
-> AltoResult<LoopbackDevice<F>>
spec: S)
-> AltoResult<LoopbackDevice<F>>
Open a loopback device from a device specifier, or default if None
.
Requires ALC_SOFT_loopback
.
fn open_capture<'s, S: Into<Option<&'s CStr>>, F: StandardFrame>(&self,
spec: S,
freq: ALCuint,
len: ALCsizei)
-> AltoResult<CaptureDevice<F>>
spec: S,
freq: ALCuint,
len: ALCsizei)
-> AltoResult<CaptureDevice<F>>
Open a capture device from a device specifier, or default if None
.