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