OpenALSoundResource Class Reference
[OpenAL Module]

#include <openalsoundresource.h>

Inheritance diagram for OpenALSoundResource:

SoundResource Resource Root Object TreeNode< Root > Referenced Counted Serialized List< Root > ListNode< Root >

List of all members.

Public Member Functions

 OpenALSoundResource (const char *id)
virtual ~OpenALSoundResource ()
virtual ulong_t GetDataSize ()
virtual bool UpdateStream ()
virtual void RewindStream ()
const ALuint * GetFrontBuffer ()
const ALuint * GetBackBuffer ()
const ALuint * GetBuffers ()

Protected Member Functions

virtual bool LoadResource ()
virtual void UnloadResource ()

Protected Attributes

Ref< OpenALAudioServeral_audio_server
ALuint buffers [2]
byte_t front_buffer
byte_t back_buffer
ALenum format
ALsizei bitrate

Constructor & Destructor Documentation

OpenALSoundResource::OpenALSoundResource ( const char *  id  ) 

OpenALSoundResource::~OpenALSoundResource (  )  [virtual]

Member Function Documentation

ulong_t OpenALSoundResource::GetDataSize (  )  [virtual]

Return an estimated byte size of the resource data. This is only used for statistics.

Reimplemented from Resource.

bool OpenALSoundResource::UpdateStream (  )  [virtual]

Reimplemented from SoundResource.

void OpenALSoundResource::RewindStream (  )  [virtual]

Reimplemented from SoundResource.

const ALuint * OpenALSoundResource::GetFrontBuffer (  )  [inline]

const ALuint * OpenALSoundResource::GetBackBuffer (  )  [inline]

const ALuint * OpenALSoundResource::GetBuffers (  )  [inline]

bool OpenALSoundResource::LoadResource (  )  [protected, virtual]

Load the sound resource.

Reimplemented from Resource.

void OpenALSoundResource::UnloadResource (  )  [protected, virtual]

Unload everything.

Reimplemented from Resource.

Member Data Documentation

Ref<OpenALAudioServer> OpenALSoundResource::al_audio_server [protected]

ALuint OpenALSoundResource::buffers[2] [protected]

byte_t OpenALSoundResource::front_buffer [protected]

byte_t OpenALSoundResource::back_buffer [protected]

ALenum OpenALSoundResource::format [protected]

ALsizei OpenALSoundResource::bitrate [protected]

The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:33 2007 for Dark Oberon by  doxygen 1.5.3