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(&self, spec: Option<&CStr>) -> AltoResult<Device>
Open an audio device from a device specifier, or default if None
.
fn open_loopback<F: LoopbackFrame>(&self,
spec: Option<&CStr>)
-> AltoResult<LoopbackDevice<F>>
spec: Option<&CStr>)
-> AltoResult<LoopbackDevice<F>>
Open a loopback device from a device specifier, or default if None
.
fn open_capture(&self,
spec: Option<&CStr>,
freq: ALCuint,
format: StandardFormat,
size: ALCsizei)
-> AltoResult<CaptureDevice>
spec: Option<&CStr>,
freq: ALCuint,
format: StandardFormat,
size: ALCsizei)
-> AltoResult<CaptureDevice>
Open a capture device from a device specifier, or default if None
.