Struct openal::Buffer [] [src]

pub struct Buffer<'a> {
    // some fields omitted
}

A buffer holding sample data.

Methods

impl<'a> Buffer<'a>
[src]

fn rate(&self) -> u32

The sample rate of the data in the buffer.

fn bits(&self) -> u16

The bit depth of the data in the buffer.

fn channels(&self) -> u16

The number of channels of the data in the buffer.

fn len(&self) -> usize

The number of samples in the buffer.

Trait Implementations

impl<'a> Eq for Buffer<'a>
[src]

impl<'a> PartialEq for Buffer<'a>
[src]

fn eq(&self, __arg_0: &Buffer<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Buffer<'a>) -> bool

This method tests for !=.

impl<'a> Debug for Buffer<'a>
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl<'a> Drop for Buffer<'a>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more