SFXXAudioDevice Class Reference#include <sfxXAudioDevice.h>
Inheritance diagram for SFXXAudioDevice:
[legend]List of all members.
Member Typedef Documentation
Constructor & Destructor Documentation
SFXXAudioDevice::SFXXAudioDevice |
( |
SFXProvider * |
provider, |
|
|
const char * |
name, |
|
|
IXAudio2 * |
xaudio, |
|
|
U32 |
deviceIndex, |
|
|
U32 |
speakerChannelMask, |
|
|
U32 |
maxBuffers | |
|
) |
| | |
virtual SFXXAudioDevice::~SFXXAudioDevice |
( |
|
) |
[virtual] |
Member Function Documentation
const char* SFXXAudioDevice::getName |
( |
|
) |
const [inline, virtual] |
Returns the name of this device.
Implements SFXDevice.
Tries to create a new sound buffer.
If creation fails freeing another buffer will usually allow a new one to be created.
- Parameters:
-
| is3d | True if a 3D sound buffer is desired. |
| channels | The number of sound channels... typically 1 or 2. |
| frequency | The number of samples per second ( a sample includes all channels ). |
| bitsPerSample | The number of bits per sample ( a sample includes all channels ). |
| dataSize | The total size of the buffer in bytes. |
- Returns:
- Returns a new buffer or NULL if one cannot be created.
Implements SFXDevice.
void SFXXAudioDevice::deleteVoice |
( |
SFXVoice * |
buffer |
) |
[virtual] |
U32 SFXXAudioDevice::getVoiceCount |
( |
|
) |
const [inline, virtual] |
Called from SFXSystem to do any updates the device may need to make.
Implements SFXDevice.
Called from the voice when its about to start playback.
Member Data Documentation
The XAudio engine interface passed on creation from the provider.
The one and only mastering voice.
The details of the master voice.
All the currently allocated voices.
All the current audio buffers.
|