SFXFMODVoice Class Reference

#include <sfxFMODVoice.h>

Inheritance diagram for SFXFMODVoice:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~SFXFMODVoice ()
void setPosition (U32 pos)
 SFXVoice.
void setMinMaxDistance (F32 min, F32 max)
 Sets the minimum and maximum distances for 3d falloff.
void play (bool looping)
 Starts playback from the current position.
void stop ()
 Stops playback and moves the position to the start.
void pause ()
 Pauses playback.
SFXStatus getStatus () const
void setVelocity (const VectorF &velocity)
 Sets the velocity for a 3d voice.
void setTransform (const MatrixF &transform)
 Sets the position and orientation for a 3d voice.
void setVolume (F32 volume)
 Sets the volume.
void setPitch (F32 pitch)
 Sets the pitch scale.
void setCone (F32 innerAngle, F32 outerAngle, F32 outerVolume)
 Set sound cone of a 3D sound.

Static Public Member Functions

static SFXFMODVoicecreate (SFXFMODDevice *device, SFXFMODBuffer *buffer)

Protected Member Functions

 SFXFMODVoice (SFXFMODDevice *device, SFXFMODBuffer *buffer)
bool _copyData (U32 offset, const U8 *data, U32 length)
bool _assignChannel ()

Protected Attributes

SFXFMODDevicemDevice
SFXFMODBuffermBuffer
FMOD_CHANNEL * mChannel

Constructor & Destructor Documentation

SFXFMODVoice::SFXFMODVoice ( SFXFMODDevice device,
SFXFMODBuffer buffer 
) [protected]

virtual SFXFMODVoice::~SFXFMODVoice (  )  [virtual]


Member Function Documentation

bool SFXFMODVoice::_copyData ( U32  offset,
const U8 data,
U32  length 
) [protected]

bool SFXFMODVoice::_assignChannel (  )  [protected]

static SFXFMODVoice* SFXFMODVoice::create ( SFXFMODDevice device,
SFXFMODBuffer buffer 
) [static]

void SFXFMODVoice::setPosition ( U32  pos  )  [virtual]

SFXVoice.

Implements SFXVoice.

void SFXFMODVoice::setMinMaxDistance ( F32  min,
F32  max 
) [virtual]

Sets the minimum and maximum distances for 3d falloff.

Implements SFXVoice.

void SFXFMODVoice::play ( bool  looping  )  [virtual]

Starts playback from the current position.

Implements SFXVoice.

void SFXFMODVoice::stop (  )  [virtual]

Stops playback and moves the position to the start.

Implements SFXVoice.

void SFXFMODVoice::pause (  )  [virtual]

Pauses playback.

Implements SFXVoice.

SFXStatus SFXFMODVoice::getStatus (  )  const [virtual]

Implements SFXVoice.

void SFXFMODVoice::setVelocity ( const VectorF velocity  )  [virtual]

Sets the velocity for a 3d voice.

Implements SFXVoice.

void SFXFMODVoice::setTransform ( const MatrixF transform  )  [virtual]

Sets the position and orientation for a 3d voice.

Implements SFXVoice.

void SFXFMODVoice::setVolume ( F32  volume  )  [virtual]

Sets the volume.

Implements SFXVoice.

void SFXFMODVoice::setPitch ( F32  pitch  )  [virtual]

Sets the pitch scale.

Implements SFXVoice.

void SFXFMODVoice::setCone ( F32  innerAngle,
F32  outerAngle,
F32  outerVolume 
) [virtual]

Set sound cone of a 3D sound.

Implements SFXVoice.


Member Data Documentation

FMOD_CHANNEL* SFXFMODVoice::mChannel [protected]