SFXDSDevice

Engine/source/sfx/dsound/sfxDSDevice.h

The DirectSound device implementation exposes a couple of settings to script that you should be aware of:

More...

Private Types

Parent 

Public Friends

Protected Attributes

DSCAPS
IDirectSound8 *
GUID *
IDirectSound3DListener8 *
IDirectSoundBuffer *

Public Functions

SFXDSDevice(SFXProvider * provider, DSoundFNTable * dsFnTbl, GUID * guid, String name, bool useHardware, S32 maxBuffers)

Tries to create a new sound buffer.

createVoice(bool is3D, SFXBuffer * buffer)

Tries to create a new voice.

Set the rolloff curve to be used by distance attenuation of 3D sounds.

Set the scale factor to use for doppler effects on 3D sounds.

Set the properties of the given listener.

Set the rolloff scale factor for distance attenuation of 3D sounds.

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

Protected Functions

Called from SFXDSVoice to commit any deferred settings before playback begins.

bool

Detailed Description

The DirectSound device implementation exposes a couple of settings to script that you should be aware of:

$DirectSound::dopplerFactor - This controls the scale of the doppler effect. Valid factors are 0.0 to 10.0 and it defaults to 0.75.

$DirectSound::distanceFactor - This sets the unit conversion for

$DirectSound::rolloffFactor - ;

Private Types

typedef SFXDevice Parent 

Public Friends

Protected Attributes

DSCAPS mCaps 
IDirectSound8 * mDSound 
DSoundFNTable * mDSoundTbl 
GUID * mGUID 
IDirectSound3DListener8 * mListener 
IDirectSoundBuffer * mPrimaryBuffer 

Public Functions

SFXDSDevice(SFXProvider * provider, DSoundFNTable * dsFnTbl, GUID * guid, String name, bool useHardware, S32 maxBuffers)

~SFXDSDevice()

createBuffer(const ThreadSafeRef< SFXStream > & stream, SFXDescription * description)

Reimplemented from: SFXDevice

createVoice(bool is3D, SFXBuffer * buffer)

Reimplemented from: SFXDevice

setDistanceModel(SFXDistanceModel model)

Reimplemented from: SFXDevice

setDopplerFactor(F32 factor)

Reimplemented from: SFXDevice

setListener(U32 index, const SFXListenerProperties & listener)

Reimplemented from: SFXDevice

setRolloffFactor(F32 factor)

Reimplemented from: SFXDevice

update()

Reimplemented from: SFXDevice

Protected Functions

_commitDeferred()

Called from SFXDSVoice to commit any deferred settings before playback begins.

_init()