[][src]Struct alto::Buffer

pub struct Buffer { /* fields omitted */ }

An audio buffer of any format.

Methods

impl Buffer[src]

pub fn context(&self) -> &Context[src]

Context from which this buffer was created.

pub fn as_raw(&self) -> ALuint[src]

Raw handle as provided by OpenAL.

pub fn set_data<F: SampleFrame, B: AsBufferData<F>>(
    &mut self,
    data: B,
    freq: ALint
) -> AltoResult<()>
[src]

alBufferData()

pub fn frequency(&self) -> ALint[src]

alGetBufferi(AL_FREQUENCY)

pub fn bits(&self) -> ALint[src]

alGetBufferi(AL_BITS)

pub fn channels(&self) -> ALint[src]

alGetBufferi(AL_CHANNELS)

pub fn size(&self) -> ALint[src]

alGetBufferi(AL_SIZE)

pub fn soft_loop_points(&self) -> (ALint, ALint)[src]

alGetBufferiv(AL_LOOP_POINTS_SOFT) Requires AL_SOFT_loop_points

pub fn set_soft_loop_points(&self, value: (ALint, ALint)) -> AltoResult<()>[src]

alBufferiv(AL_LOOP_POINTS_SOFT) Requires AL_SOFT_loop_points

Trait Implementations

impl Drop for Buffer[src]

Auto Trait Implementations

impl Send for Buffer

impl Sync for Buffer

Blanket Implementations

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

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