Struct alto::Buffer [] [src]

pub struct Buffer<'d: 'c, 'c> { /* fields omitted */ }

A buffer containing audio data of any supported format.

Methods

impl<'d: 'c, 'c> Buffer<'d, 'c>
[src]

Context from which this buffer was created.

Raw handle as provided by OpenAL.

Upload sound data from a slice of sample frames.

Sample-rate of the audio in the buffer.

Bit-depth of the audio in the buffer.

Number of channels for the audio in the buffer.

Size in bytes of the audio in the buffer.

Loop points for the audio in the buffer, as a tuple of start and end samples. Requires AL_SOFT_loop_points.

Trait Implementations

impl<'d: 'c, 'c> Drop for Buffer<'d, 'c>
[src]

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