OALplus (0.52.0) a C++ wrapper for OpenAL

oalplus::ObjectOps< tag::DirectState, tag::Buffer > Class Template Reference

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...
 

Detailed Description

template<>
class oalplus::ObjectOps< tag::DirectState, tag::Buffer >

Wrapper for OpenAL buffer operations.

Note
Do not use this class directly, use Buffer instead
See Also
Buffer

Member Function Documentation

ALsizei oalplus::ObjectOps< tag::DirectState, tag::Buffer >::Bits ( void  ) const

Returns the number of bits of the data stored in this buffer.

Related OpenAL symbols:
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.

Related OpenAL symbols:
alGetBuffer AL_CHANNELS
void oalplus::ObjectOps< tag::DirectState, tag::Buffer >::Data ( DataFormat  format,
const ALvoid *  data,
ALsizei  size,
ALsizei  frequency 
)

Specifies the buffer data.

Related OpenAL symbols:
alBufferData
ALfloat oalplus::ObjectOps< tag::DirectState, tag::Buffer >::Duration ( void  ) const

Returns the duration of the sound stored in this buffer.

Related OpenAL symbols:
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.

Related OpenAL symbols:
alGetBuffer AL_FREQUENCY
ALsizei oalplus::ObjectOps< tag::DirectState, tag::Buffer >::Size ( void  ) const

Returns the size of the data stored in this buffer.

Related OpenAL symbols:
alGetBuffer AL_SIZE

The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oalplus/buffer.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).