SFXDSDevice
Engine/source/sfx/dsound/sfxDSDevice.h
The DirectSound device implementation exposes a couple of settings to script that you should be aware of:
Private Types
Parent
Public Friends
class
class
Protected Attributes
DSCAPS
IDirectSound8 *
GUID *
IDirectSound3DListener8 *
IDirectSoundBuffer *
Public Functions
SFXDSDevice(SFXProvider * provider, DSoundFNTable * dsFnTbl, GUID * guid, String name, bool useHardware, S32 maxBuffers)
createBuffer(const ThreadSafeRef< SFXStream > & stream, SFXDescription * description)
Tries to create a new sound buffer.
SFXVoice *
createVoice(bool is3D, SFXBuffer * buffer)
Tries to create a new voice.
setDistanceModel(SFXDistanceModel model)
Set the rolloff curve to be used by distance attenuation of 3D sounds.
setDopplerFactor(F32 factor)
Set the scale factor to use for doppler effects on 3D sounds.
setListener(U32 index, const SFXListenerProperties & listener)
Set the properties of the given listener.
setRolloffFactor(F32 factor)
Set the rolloff scale factor for distance attenuation of 3D sounds.
Protected Functions
Called from SFXDSVoice to commit any deferred settings before playback begins.
bool
_init()
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()