Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
nom::OpenAL::SoundBuffer Class Reference

Public Member Functions

uint32 get (void) const
 Obtain buffer data.
 
uint32 getDuration (void) const
 
bool load (const std::string &filename)
 

Private Member Functions

void attach (Sound *sound) const
 Internally used for attaching a sound to our list.
 
void detach (Sound *sound) const
 Internally used for detaching a sound from our list.
 

Private Attributes

std::set< Sound * > sounds
 Internal list of sounds loaded onto a buffer object.
 
uint32 buffer
 Used internally by OpenAL for identification of audio buffer.
 
std::vector< int16 > samples
 We load our audio data into this buffer.
 
uint32 buffer_duration
 

Friends

class Sound
 

Detailed Description

Definition at line 47 of file SoundBuffer.hpp.

Member Function Documentation

uint32 nom::OpenAL::SoundBuffer::getDuration ( void  ) const

Obtain buffer duration in milliseconds

Default: zero (0)

Definition at line 63 of file SoundBuffer.cpp.

Member Data Documentation

uint32 nom::OpenAL::SoundBuffer::buffer_duration
private

Duration of sound buffer

Default: zero (0)

Definition at line 88 of file SoundBuffer.hpp.


The documentation for this class was generated from the following files: