Struct alto::Buffer
[−]
[src]
pub struct Buffer<'d: 'c, 'c> { /* fields omitted */ }
An audio buffer of any format.
Methods
impl<'d: 'c, 'c> Buffer<'d, 'c>
[src]
fn context(&self) -> &Context<'d>
Context from which this buffer was created.
fn as_raw(&self) -> ALuint
Raw handle as provided by OpenAL.
fn set_data<F: SampleFrame, R: AsBufferData<F>>(&mut self,
data: R,
freq: i32)
-> AltoResult<()>
data: R,
freq: i32)
-> AltoResult<()>
alBufferData()
fn frequency(&self) -> AltoResult<ALint>
alGetBufferi(AL_FREQUENCY)
fn bits(&self) -> AltoResult<ALint>
alGetBufferi(AL_BITS)
fn channels(&self) -> AltoResult<ALint>
alGetBufferi(AL_CHANNELS)
fn size(&self) -> AltoResult<ALint>
alGetBufferi(AL_SIZE)
fn soft_loop_points(&self) -> AltoResult<(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