|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLSOUND::CSoundDriverAL Class ReferenceOpenAL sound driver.
More...
#include <sound_driver_al.h>
Inheritance diagram for NLSOUND::CSoundDriverAL:
List of all members.
Public Methods |
| CSoundDriverAL () |
| Constructor. More...
|
virtual bool | init () |
| Initialization. More...
|
virtual IBuffer * | createBuffer () |
| Create a sound buffer. More...
|
virtual IListener * | createListener () |
| Create the listener instance. More...
|
virtual uint | countMaxSources () |
| Return the maximum number of sources that can created. More...
|
virtual ISource * | createSource () |
| Create a source. More...
|
void | applyRolloffFactor (float f) |
| Change the rolloff factor and apply to all sources. More...
|
virtual bool | loadWavFile (IBuffer *destbuffer, const char *filename) |
| Temp. More...
|
virtual void | commit3DChanges () |
| Commit all the changes made to 3D settings of listener and sources. More...
|
virtual void | writeProfile (std::ostream &out) |
| Write information about the driver to the output stream. More...
|
virtual | ~CSoundDriverAL () |
| Destructor. More...
|
Static Public Methods |
CSoundDriverAL * | instance () |
| Return the instance of the singleton. More...
|
Protected Methods |
friend | CBufferAL::~CBufferAL () |
friend | CSourceAL::~CSourceAL () |
void | removeBuffer (IBuffer *buffer) |
| Remove a buffer. More...
|
void | removeSource (ISource *source) |
| Remove a source. More...
|
void | allocateNewItems (TGenFunctionAL algenfunc, TTestFunctionAL altestfunc, std::vector< ALuint > &names, uint index, uint nb) |
| Allocate nb new buffers or sources. More...
|
void | generateItems (TGenFunctionAL algenfunc, TTestFunctionAL altestfunc, uint nb, ALuint *array) |
| Generate nb buffers. More...
|
uint | compactAliveNames (std::vector< ALuint > &names, TTestFunctionAL testfunc) |
| Remove names of deleted items and return the number of valid items. More...
|
ALuint | createItem (TGenFunctionAL algenfunc, TTestFunctionAL altestfunc, std::vector< ALuint > &names, uint &index, uint allocrate) |
| Create a sound buffer or a sound source. More...
|
bool | deleteItem (ALuint name, TGenFunctionAL aldeletefunc, std::vector< ALuint > &names) |
| Delete a buffer or a source. More...
|
Private Attributes |
std::vector< ALuint > | _Buffers |
std::vector< ALuint > | _Sources |
uint | _NbExpBuffers |
uint | _NbExpSources |
float | _RolloffFactor |
Static Private Attributes |
CSoundDriverAL * | _Instance = NULL |
Detailed Description
OpenAL sound driver.
The caller of the create methods is responsible for the deletion of the created objects These objects must be deleted before deleting the ISoundDriver instance.
-
Author:
-
Olivier Cado , Nevrax France
-
Date:
-
2001
Definition at line 87 of file sound_driver_al.h.
Constructor & Destructor Documentation
NLSOUND::CSoundDriverAL::CSoundDriverAL |
( |
|
) |
|
|
NLSOUND::CSoundDriverAL::~CSoundDriverAL |
( |
|
) |
[virtual] |
|
NLSOUND::CSoundDriverAL::CBufferAL::~CBufferAL |
( |
|
) |
[protected] |
|
NLSOUND::CSoundDriverAL::CSourceAL::~CSourceAL |
( |
|
) |
[protected] |
|
Member Function Documentation
void NLSOUND::CSoundDriverAL::applyRolloffFactor |
( |
float |
f |
) |
|
|
virtual void NLSOUND::CSoundDriverAL::commit3DChanges |
( |
|
) |
[inline, virtual] |
|
uint NLSOUND::CSoundDriverAL::compactAliveNames |
( |
std::vector< ALuint > & |
names, |
|
|
TTestFunctionAL |
testfunc |
|
) |
[protected] |
|
virtual uint NLSOUND::CSoundDriverAL::countMaxSources |
( |
|
) |
[inline, virtual] |
|
IBuffer * NLSOUND::CSoundDriverAL::createBuffer |
( |
|
) |
[virtual] |
|
IListener * NLSOUND::CSoundDriverAL::createListener |
( |
|
) |
[virtual] |
|
ISource * NLSOUND::CSoundDriverAL::createSource |
( |
|
) |
[virtual] |
|
bool NLSOUND::CSoundDriverAL::deleteItem |
( |
ALuint |
name, |
|
|
TGenFunctionAL |
aldeletefunc, |
|
|
std::vector< ALuint > & |
names |
|
) |
[protected] |
|
bool NLSOUND::CSoundDriverAL::init |
( |
|
) |
[virtual] |
|
CSoundDriverAL* NLSOUND::CSoundDriverAL::instance |
( |
|
) |
[inline, static] |
|
bool NLSOUND::CSoundDriverAL::loadWavFile |
( |
IBuffer * |
destbuffer, |
|
|
const char * |
filename |
|
) |
[virtual] |
|
void NLSOUND::CSoundDriverAL::removeBuffer |
( |
IBuffer * |
buffer |
) |
[protected, virtual] |
|
void NLSOUND::CSoundDriverAL::removeSource |
( |
ISource * |
source |
) |
[protected, virtual] |
|
virtual void NLSOUND::CSoundDriverAL::writeProfile |
( |
std::ostream & |
out |
) |
[inline, virtual] |
|
Member Data Documentation
std::vector<ALuint> NLSOUND::CSoundDriverAL::_Buffers [private]
|
|
CSoundDriverAL * NLSOUND::CSoundDriverAL::_Instance = NULL [static, private]
|
|
uint NLSOUND::CSoundDriverAL::_NbExpBuffers [private]
|
|
uint NLSOUND::CSoundDriverAL::_NbExpSources [private]
|
|
float NLSOUND::CSoundDriverAL::_RolloffFactor [private]
|
|
std::vector<ALuint> NLSOUND::CSoundDriverAL::_Sources [private]
|
|
The documentation for this class was generated from the following files:
|
|