|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CPSSound Class ReferenceThis is a goup of sound instances sound instance.
More...
#include <ps_sound.h>
Inheritance diagram for NL3D::CPSSound:
List of all members.
Detailed Description
This is a goup of sound instances sound instance.
sounds are produced during the motion pass -
Author:
-
Nicolas Vizerie , Nevrax France
-
Date:
-
2001
Definition at line 49 of file ps_sound.h.
Constructor & Destructor Documentation
NL3D::CPSSound::CPSSound |
( |
|
) |
|
|
NL3D::CPSSound::~CPSSound |
( |
|
) |
|
|
Member Function Documentation
void NL3D::CPSSound::deleteElement |
( |
uint32 |
index |
) |
[protected, virtual] |
|
float NL3D::CPSSound::getEmissionPercent |
( |
void |
|
) |
const [inline] |
|
float NL3D::CPSSound::getGain |
( |
void |
|
) |
const [inline] |
|
|
get the current gain. meaningful only if a scheme is not used.
Definition at line 92 of file ps_sound.h.
References _Gain. |
const CPSAttribMaker<float>* NL3D::CPSSound::getGainScheme |
( |
void |
|
) |
const [inline] |
|
CPSAttribMaker<float>* NL3D::CPSSound::getGainScheme |
( |
void |
|
) |
[inline] |
|
bool NL3D::CPSSound::getMute |
( |
void |
|
) |
const [inline] |
|
|
test wether mute has been activated.
Definition at line 155 of file ps_sound.h.
References _Mute. |
float NL3D::CPSSound::getPitch |
( |
void |
|
) |
const [inline] |
|
|
get the current pitch. meaningful only if a scheme is not used.
Definition at line 117 of file ps_sound.h.
References _Pitch. |
const CPSAttribMaker<float>* NL3D::CPSSound::getPitchScheme |
( |
void |
|
) |
const [inline] |
|
CPSAttribMaker<float>* NL3D::CPSSound::getPitchScheme |
( |
void |
|
) |
[inline] |
|
virtual uint32 NL3D::CPSSound::getPriority |
( |
void |
|
) |
const [inline, virtual] |
|
const std::string& NL3D::CPSSound::getSoundName |
( |
void |
|
) |
const [inline] |
|
bool NL3D::CPSSound::getSpawn |
( |
void |
|
) |
const [inline] |
|
uint32 NL3D::CPSSound::getType |
( |
void |
|
) |
const [virtual] |
|
void NL3D::CPSSound::newElement |
( |
CPSLocated * |
emitterLocated, |
|
|
uint32 |
emitterIndex |
|
) |
[protected, virtual] |
|
|
Generate a new element for this bindable.
They are generated according to the propertie of the class
Implements NL3D::CPSLocatedBindable.
Definition at line 320 of file ps_sound.cpp.
References _EmissionPercent, _GainScheme, _Mute, NL3D::CPSLocatedBindable::_Owner, _PitchScheme, _SoundName, _Sounds, _SoundStopped, _SpawnSounds, NL3D::CPSLocatedBindable::getOwner, NLMISC::CMatrix::Identity, index, and nlassert.
Referenced by step. |
NL3D::CPSSound::NLMISC_DECLARE_CLASS |
( |
CPSSound |
|
) |
|
|
void NL3D::CPSSound::reactivateSound |
( |
|
) |
|
|
void NL3D::CPSSound::removeAllSources |
( |
|
) |
[protected] |
|
void NL3D::CPSSound::resize |
( |
uint32 |
size |
) |
[protected, virtual] |
|
void NL3D::CPSSound::setEmissionPercent |
( |
float |
percent |
) |
[inline] |
|
void NL3D::CPSSound::setGain |
( |
float |
gain |
) |
|
|
|
Set a gain scheme.
It must have been allocated by new, and is then owned by this object
Definition at line 220 of file ps_sound.cpp.
References _GainScheme. |
void NL3D::CPSSound::setMute |
( |
bool |
enabled = true |
) |
[inline] |
|
|
set mute on/off. The default is off. WARNING : It is not saved by this object.
Definition at line 152 of file ps_sound.h.
References _Mute. |
void NL3D::CPSSound::setPitch |
( |
float |
pitch |
) |
|
|
void NL3D::CPSSound::setPitchScheme |
( |
CPSAttribMaker< float > * |
pitch |
) |
|
|
|
Set a pitch scheme.
It must have been allocated by new, and is then owned by this object
Definition at line 236 of file ps_sound.cpp.
References _PitchScheme. |
void NL3D::CPSSound::setSoundName |
( |
const std::string & |
soundName |
) |
[inline] |
|
void NL3D::CPSSound::setSpawn |
( |
bool |
enabled = true |
) |
[inline] |
|
|
process one pass for the sound.
This is usually done during the motion pass
Implements NL3D::CPSLocatedBindable.
Definition at line 102 of file ps_sound.cpp.
References _Gain, _GainScheme, _Mute, NL3D::CPSLocatedBindable::_Owner, _Pitch, _PitchScheme, _SoundReactivated, _Sounds, _SoundStopped, NL3D::CPSLocatedBindable::getOwner, newElement, nlassert, NL3D::PSMotion, removeAllSources, NL3D::SoundBufSize, NL3D::TAnimationTime, and NL3D::TPSProcessPass. |
void NL3D::CPSSound::stopSound |
( |
|
) |
|
|
Member Data Documentation
float NL3D::CPSSound::_EmissionPercent [protected]
|
|
float NL3D::CPSSound::_Gain [protected]
|
|
bool NL3D::CPSSound::_Mute [protected]
|
|
float NL3D::CPSSound::_Pitch [protected]
|
|
std::string NL3D::CPSSound::_SoundName [protected]
|
|
bool NL3D::CPSSound::_SoundReactivated [protected]
|
|
bool NL3D::CPSSound::_SoundStopped [protected]
|
|
bool NL3D::CPSSound::_SpawnSounds [protected]
|
|
The documentation for this class was generated from the following files:
|
|