Wrapper for OpenAL buffer operations. More...
#include </home/chochlik/devel/oglplus/include/oalplus/buffer.hpp>
Inherits ObjectName< tag::Buffer >.
Public Member Functions | |
void | Data (DataFormat format, const ALvoid *data, ALsizei size, ALsizei frequency) |
Specifies the buffer data. More... | |
ALsizei | Frequency (void) const |
Returns the sampling frequency of the data stored in this buffer. More... | |
ALsizei | Size (void) const |
Returns the size of the data stored in this buffer. More... | |
ALsizei | Bits (void) const |
Returns the number of bits of the data stored in this buffer. More... | |
ALsizei | Channels (void) const |
Returns the number of channels of the data stored in this buffer. More... | |
ALfloat | Duration (void) const |
Returns the duration of the sound stored in this buffer. More... | |
Wrapper for OpenAL buffer operations.
ALsizei oalplus::ObjectOps< tag::DirectState, tag::Buffer >::Bits | ( | void | ) | const |
Returns the number of bits of the data stored in this buffer.
alGetBuffer
AL_BITS
ALsizei oalplus::ObjectOps< tag::DirectState, tag::Buffer >::Channels | ( | void | ) | const |
Returns the number of channels of the data stored in this buffer.
alGetBuffer
AL_CHANNELS
void oalplus::ObjectOps< tag::DirectState, tag::Buffer >::Data | ( | DataFormat | format, |
const ALvoid * | data, | ||
ALsizei | size, | ||
ALsizei | frequency | ||
) |
Specifies the buffer data.
alBufferData
ALfloat oalplus::ObjectOps< tag::DirectState, tag::Buffer >::Duration | ( | void | ) | const |
Returns the duration of the sound stored in this buffer.
alGetBuffer
AL_SIZE
AL_FREQUENCY
AL_BITS
AL_CHANNELS
References oalplus::Frequency.
ALsizei oalplus::ObjectOps< tag::DirectState, tag::Buffer >::Frequency | ( | void | ) | const |
Returns the sampling frequency of the data stored in this buffer.
alGetBuffer
AL_FREQUENCY
ALsizei oalplus::ObjectOps< tag::DirectState, tag::Buffer >::Size | ( | void | ) | const |
Returns the size of the data stored in this buffer.
alGetBuffer
AL_SIZE