Struct alto::Alto
[−]
[src]
pub struct 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]
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
Raw entry points of the OpenAL API.
fn default_output(&self) -> Option<CString>
alcGetString(ALC_DEFAULT_DEVICE_SPECIFIER)
fn default_capture(&self) -> Option<CString>
alcGetString(ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER)
fn enumerate_outputs(&self) -> Vec<CString>
alcGetString(ALC_DEVICE_SPECIFIER)
fn enumerate_captures(&self) -> Vec<CString>
alcGetString(ALC_CAPTURE_DEVICE_SPECIFIER)
fn open(&self, spec: Option<&CStr>) -> AltoResult<OutputDevice>
alcOpenDevice()
fn open_loopback<F: LoopbackFrame>(
&self,
spec: Option<&CStr>
) -> AltoResult<LoopbackDevice<F>>
&self,
spec: Option<&CStr>
) -> AltoResult<LoopbackDevice<F>>
alcLoopbackOpenDeviceSOFT()
Requires ALC_SOFT_loopback
fn open_capture<F: StandardFrame>(
&self,
spec: Option<&CStr>,
freq: ALCuint,
len: ALCsizei
) -> AltoResult<Capture<F>>
&self,
spec: Option<&CStr>,
freq: ALCuint,
len: ALCsizei
) -> AltoResult<Capture<F>>
alcCaptureOpenDevice()
Trait Implementations
impl Clone for Alto
[src]
fn clone(&self) -> Alto
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more