Struct alto::Buffer
[−]
[src]
pub struct Buffer { /* fields omitted */ }
An audio buffer of any format.
Methods
impl Buffer
[src]
fn context(&self) -> &Context
[src]
Context from which this buffer was created.
fn as_raw(&self) -> ALuint
[src]
Raw handle as provided by OpenAL.
fn set_data<F: SampleFrame, B: AsBufferData<F>>(
&mut self,
data: B,
freq: ALint
) -> AltoResult<()>
[src]
&mut self,
data: B,
freq: ALint
) -> AltoResult<()>
alBufferData()
fn frequency(&self) -> ALint
[src]
alGetBufferi(AL_FREQUENCY)
fn bits(&self) -> ALint
[src]
alGetBufferi(AL_BITS)
fn channels(&self) -> ALint
[src]
alGetBufferi(AL_CHANNELS)
fn size(&self) -> ALint
[src]
alGetBufferi(AL_SIZE)
fn soft_loop_points(&self) -> (ALint, ALint)
[src]
alGetBufferiv(AL_LOOP_POINTS_SOFT)
Requires AL_SOFT_loop_points
fn set_soft_loop_points(&self, value: (ALint, ALint)) -> AltoResult<()>
[src]
alBufferiv(AL_LOOP_POINTS_SOFT)
Requires AL_SOFT_loop_points