torque Torque Game Engine Documentation
TGE Version 1.5.2

AudioBuffer Class Reference

#include <audioBuffer.h>

Inheritance diagram for AudioBuffer:

Inheritance graph
[legend]

Public Member Functions

 AudioBuffer (StringTableEntry filename)
 ~AudioBuffer ()
ALuint getALBuffer ()
bool isLoading ()

Static Public Member Functions

static Resource< AudioBufferfind (const char *filename)
static ResourceInstanceconstruct (Stream &stream)

Private Member Functions

bool readRIFFchunk (Stream &s, const char *seekLabel, U32 *size)
bool readWAV (ResourceObject *obj)
bool readOgg (ResourceObject *obj)
long oggRead (OggVorbisFile *vf, char *buffer, int length, int bigendianp, int *bitstream)

Private Attributes

StringTableEntry mFilename
bool mLoading
ALuint malBuffer

Friends

class AudioThread

Constructor & Destructor Documentation

AudioBuffer::AudioBuffer ( StringTableEntry  filename  ) 

AudioBuffer::~AudioBuffer (  ) 


Member Function Documentation

bool AudioBuffer::readRIFFchunk ( Stream s,
const char *  seekLabel,
U32 size 
) [private]

bool AudioBuffer::readWAV ( ResourceObject obj  )  [private]

bool AudioBuffer::readOgg ( ResourceObject obj  )  [private]

long AudioBuffer::oggRead ( OggVorbisFile vf,
char *  buffer,
int  length,
int  bigendianp,
int bitstream 
) [private]

ALuint AudioBuffer::getALBuffer (  ) 

bool AudioBuffer::isLoading (  )  [inline]

static Resource<AudioBuffer> AudioBuffer::find ( const char *  filename  )  [static]

static ResourceInstance* AudioBuffer::construct ( Stream stream  )  [static]


Friends And Related Function Documentation

friend class AudioThread [friend]


Field Documentation

bool AudioBuffer::mLoading [private]

ALuint AudioBuffer::malBuffer [private]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen