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 raw_api(&self) -> &AlApi
fn default_output(&self) -> AltoResult<CString>
fn default_capture(&self) -> AltoResult<CString>
fn enumerate_outputs(&self) -> AltoResult<Vec<CString>>
fn enumerate_captures(&self) -> AltoResult<Vec<CString>>
fn open<'s, S: Into<Option<&'s CStr>>>(&self, spec: S) -> AltoResult<Device>
fn open_loopback<'s, S: Into<Option<&'s CStr>>, F: LoopbackFrame>(&self,
spec: S)
-> AltoResult<LoopbackDevice<F>>
spec: S)
-> AltoResult<LoopbackDevice<F>>
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>>