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