SFXFMODDevice Class Reference

#include <sfxFMODDevice.h>

Inheritance diagram for SFXFMODDevice:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 SFXFMODDevice ()
 SFXFMODDevice (SFXProvider *provider, FModFNTable *fmodFnTbl, int deviceIdx, const char *name)
virtual ~SFXFMODDevice ()
const char * getName () const
 Returns the name of this device.
SFXBuffercreateBuffer (SFXProfile *profile)
 Tries to create a new sound buffer.
SFXVoicecreateVoice (bool is3D, SFXBuffer *buffer)
void deleteVoice (SFXVoice *buffer)
U32 getVoiceCount () const
void update (const SFXListener &listener)
 Called from SFXSystem to do any updates the device may need to make.
virtual bool supportsResource (const SFXResource *resource)
FMOD_MODE get3dRollOffMode ()

Static Public Attributes

static FMOD_SYSTEM * smSystem
static FModFNTablesmFunc

Protected Attributes

const StringTableEntry mName
SFXFMODVoiceVector mVoices
 The active voices.
SFXFMODBufferVector mBuffers
 The allocated buffers.
FMOD_MODE m3drolloffmode

Private Types

typedef SFXDevice Parent

Member Typedef Documentation

typedef SFXDevice SFXFMODDevice::Parent [private]


Constructor & Destructor Documentation

SFXFMODDevice::SFXFMODDevice (  )  [explicit]

SFXFMODDevice::SFXFMODDevice ( SFXProvider provider,
FModFNTable fmodFnTbl,
int  deviceIdx,
const char *  name 
)

virtual SFXFMODDevice::~SFXFMODDevice (  )  [virtual]


Member Function Documentation

const char* SFXFMODDevice::getName (  )  const [inline, virtual]

Returns the name of this device.

Implements SFXDevice.

SFXBuffer* SFXFMODDevice::createBuffer ( SFXProfile profile  )  [virtual]

Tries to create a new sound buffer.

If creation fails freeing another buffer will usually allow a new one to be created.

Parameters:
is3d True if a 3D sound buffer is desired.
channels The number of sound channels... typically 1 or 2.
frequency The number of samples per second ( a sample includes all channels ).
bitsPerSample The number of bits per sample ( a sample includes all channels ).
dataSize The total size of the buffer in bytes.
Returns:
Returns a new buffer or NULL if one cannot be created.

Implements SFXDevice.

SFXVoice* SFXFMODDevice::createVoice ( bool  is3D,
SFXBuffer buffer 
) [virtual]

Implements SFXDevice.

void SFXFMODDevice::deleteVoice ( SFXVoice buffer  )  [virtual]

Implements SFXDevice.

U32 SFXFMODDevice::getVoiceCount (  )  const [inline, virtual]

Implements SFXDevice.

void SFXFMODDevice::update ( const SFXListener listener  )  [virtual]

Called from SFXSystem to do any updates the device may need to make.

Implements SFXDevice.

virtual bool SFXFMODDevice::supportsResource ( const SFXResource resource  )  [inline, virtual]

FMOD_MODE SFXFMODDevice::get3dRollOffMode (  )  [inline]


Member Data Documentation

The active voices.

The allocated buffers.

FMOD_MODE SFXFMODDevice::m3drolloffmode [protected]

FMOD_SYSTEM* SFXFMODDevice::smSystem [static]