SFXXAudioDevice
Engine/source/sfx/xaudio/sfxXAudioDevice.h
Public Types
Parent
Public Friends
class
Protected Attributes
X3DAUDIO_LISTENER
The one listener.
IXAudio2MasteringVoice *
The one and only mastering voice.
XAUDIO2_VOICE_DETAILS
The details of the master voice.
X3DAUDIO_HANDLE
The X3DAudio instance.
IXAudio2 *
The XAudio engine interface passed on creation from the provider.
Public Functions
SFXXAudioDevice(SFXProvider * provider, const String & name, IXAudio2 * xaudio, U32 deviceIndex, U32 speakerChannelMask, U32 maxBuffers)
_setOutputMatrix(SFXXAudioVoice * voice)
Called from the voice when its about to start playback.
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.
Detailed Description
Public Types
typedef SFXDevice Parent
Public Friends
Protected Attributes
SFXDistanceModel mDistanceModel
F32 mDopplerFactor
X3DAUDIO_LISTENER mListener
The one listener.
IXAudio2MasteringVoice * mMasterVoice
The one and only mastering voice.
XAUDIO2_VOICE_DETAILS mMasterVoiceDetails
The details of the master voice.
F32 mRolloffFactor
X3DAUDIO_HANDLE mX3DAudio
The X3DAudio instance.
IXAudio2 * mXAudio
The XAudio engine interface passed on creation from the provider.
Public Functions
SFXXAudioDevice(SFXProvider * provider, const String & name, IXAudio2 * xaudio, U32 deviceIndex, U32 speakerChannelMask, U32 maxBuffers)
~SFXXAudioDevice()
_setOutputMatrix(SFXXAudioVoice * voice)
Called from the voice when its about to start playback.
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