#include
<oalplus/buffer.hpp>
template <> class ObjectOps<tag::DirectState, tag::Buffer> : public BufferName { public: void Data( DataFormat format, const ALvoid* data, ALsizei size, ALsizei frequency );ALsizei Frequency(void) const;
ALsizei Size(void) const;
ALsizei Bits(void) const;
ALsizei Channels(void) const;
ALfloat Duration(void) const;
};
Specifies the buffer audio sample data. See |
|
Returns the sampling frequency (in Hz) of the data stored in this buffer.
See |
|
Returns the size (in bytes) of the data stored in this buffer. |
|
Returns the number of bits per sample of the data stored in this buffer.
See |
|
Returns the number of channels of the data stored in this buffer. See
|
|
Returns the duration (in seconds) of the sound stored in this buffer.
See |
typedef ObjectOps<tag::DirectState, tag::Buffer> BufferOps; typedef Object<BufferOps> Buffer;