[−][src]Struct alto::Buffer
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]
&mut self,
data: B,
freq: ALint
) -> AltoResult<()>
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
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,