SFXDSVoice Class Reference

#include <sfxDSVoice.h>

Inheritance diagram for SFXDSVoice:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~SFXDSVoice ()
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 pause ()
 Pauses playback.
void stop ()
 Stops playback and moves the position to the start.
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 SFXDSVoicecreate (SFXDSDevice *device, SFXDSBuffer *buffer)

Protected Member Functions

 SFXDSVoice (SFXDSDevice *device, SFXDSBuffer *buffer, IDirectSoundBuffer8 *dsBuffer, IDirectSound3DBuffer8 *dsBuffer3d)

Static Protected Member Functions

static LONG _linearToLogVolume (F32 linVolume)
 Helper for converting floating point linear volume to a logrithmic integer volume for dsound.

Protected Attributes

SFXDSDevicemDevice
 The device used to commit deferred settings.
SFXDSBuffermBuffer
IDirectSoundBuffer8 * mDSBuffer
IDirectSound3DBuffer8 * mDSBuffer3D
U32 mFrequency
bool mPaused

Constructor & Destructor Documentation

SFXDSVoice::SFXDSVoice ( SFXDSDevice device,
SFXDSBuffer buffer,
IDirectSoundBuffer8 *  dsBuffer,
IDirectSound3DBuffer8 *  dsBuffer3d 
) [protected]

virtual SFXDSVoice::~SFXDSVoice (  )  [virtual]


Member Function Documentation

static LONG SFXDSVoice::_linearToLogVolume ( F32  linVolume  )  [static, protected]

Helper for converting floating point linear volume to a logrithmic integer volume for dsound.

static SFXDSVoice* SFXDSVoice::create ( SFXDSDevice device,
SFXDSBuffer buffer 
) [static]

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

SFXVoice.

Implements SFXVoice.

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

Sets the minimum and maximum distances for 3d falloff.

Implements SFXVoice.

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

Starts playback from the current position.

Implements SFXVoice.

void SFXDSVoice::pause (  )  [virtual]

Pauses playback.

Implements SFXVoice.

void SFXDSVoice::stop (  )  [virtual]

Stops playback and moves the position to the start.

Implements SFXVoice.

SFXStatus SFXDSVoice::getStatus (  )  const [virtual]

Implements SFXVoice.

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

Sets the velocity for a 3d voice.

Implements SFXVoice.

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

Sets the position and orientation for a 3d voice.

Implements SFXVoice.

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

Sets the volume.

Implements SFXVoice.

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

Sets the pitch scale.

Implements SFXVoice.

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

Set sound cone of a 3D sound.

Implements SFXVoice.


Member Data Documentation

The device used to commit deferred settings.

IDirectSoundBuffer8* SFXDSVoice::mDSBuffer [protected]

IDirectSound3DBuffer8* SFXDSVoice::mDSBuffer3D [protected]