[][src]Struct alto::Alto

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]

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]

alcLoopbackOpenDeviceSOFT() Requires ALC_SOFT_loopback

pub fn open_capture<F: StandardFrame>(
    &self,
    spec: Option<&CStr>,
    freq: ALCuint,
    len: ALCsizei
) -> AltoResult<Capture<F>>
[src]

alcCaptureOpenDevice()

Trait Implementations

impl Clone for Alto[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Alto

impl Sync for Alto

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T