Torque3D Documentation / _generateds / SFXXAudioDevice

SFXXAudioDevice

Engine/source/sfx/xaudio/sfxXAudioDevice.h

More...

Public Types

Parent 

Public Friends

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)

Called from the voice when its about to start playback.

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.

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