SFXDSVoice

Engine/source/sfx/dsound/sfxDSVoice.h

More...

Private Types

Parent 

Protected Attributes

The device used to commit deferred settings.

IDirectSoundBuffer8 *
IDirectSound3DBuffer8 *

Protected Functions

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

Pause playback on the device.

Start playback on the device.

_seek(U32 sample)

Set the playback cursor on the device.

Return the current playback status (playing, paused, or stopped).

Stop playback on the device.

Get the playback cursor on the device.

Protected Static Functions

LONG

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

Public Static Functions

create(SFXDSDevice * device, SFXDSBuffer * buffer)

Public Functions

play(bool looping)

Starts playback from the current position.

setCone(F32 innerAngle, F32 outerAngle, F32 outerVolume)

Set sound cone of a 3D sound.

Sets the minimum and maximum distances for 3d falloff.

setPitch(F32 pitch)

Sets the pitch scale.

setTransform(const MatrixF & transform)

Sets the position and orientation for a 3d voice.

Sets the velocity for a 3d voice.

setVolume(F32 volume)

Sets the volume.

Detailed Description

Private Types

typedef SFXVoice Parent 

Protected Attributes

SFXDSDevice * mDevice 

The device used to commit deferred settings.

IDirectSoundBuffer8 * mDSBuffer 
IDirectSound3DBuffer8 * mDSBuffer3D 
bool mIsLooping 

Protected Functions

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

_getBuffer()

_pause()

Reimplemented from: SFXVoice

_play()

Reimplemented from: SFXVoice

_seek(U32 sample)

Reimplemented from: SFXVoice

_status()

Reimplemented from: SFXVoice

_stop()

Reimplemented from: SFXVoice

_tell()

Reimplemented from: SFXVoice

Protected Static Functions

_linearToLogVolume(F32 linVolume)

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

Public Static Functions

create(SFXDSDevice * device, SFXDSBuffer * buffer)

Public Functions

~SFXDSVoice()

play(bool looping)

Reimplemented from: SFXVoice

setCone(F32 innerAngle, F32 outerAngle, F32 outerVolume)

Reimplemented from: SFXVoice

setMinMaxDistance(F32 min, F32 max)

Reimplemented from: SFXVoice

setPitch(F32 pitch)

Reimplemented from: SFXVoice

setTransform(const MatrixF & transform)

Reimplemented from: SFXVoice

setVelocity(const VectorF & velocity)

Reimplemented from: SFXVoice

setVolume(F32 volume)

Reimplemented from: SFXVoice