|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLSOUND::CSound Class ReferenceA sound base class and its static properties.
More...
#include <sound.h>
Inheritance diagram for NLSOUND::CSound:
List of all members.
Detailed Description
A sound base class and its static properties.
-
Author:
-
Olivier Cado , Nevrax France
-
Date:
-
2001
Definition at line 58 of file sound.h.
Member Enumeration Documentation
enum NLSOUND::CSound::TSOUND_TYPE
|
|
Constructor & Destructor Documentation
NLSOUND::CSound::CSound |
( |
|
) |
|
|
NLSOUND::CSound::~CSound |
( |
|
) |
[virtual] |
|
Member Function Documentation
CSound * NLSOUND::CSound::createSound |
( |
const std::string & |
filename, |
|
|
NLGEORGES::UFormElm & |
formRoot |
|
) |
[static] |
|
float NLSOUND::CSound::getConeInnerAngle |
( |
|
) |
const [inline] |
|
float NLSOUND::CSound::getConeOuterAngle |
( |
|
) |
const [inline] |
|
float NLSOUND::CSound::getConeOuterGain |
( |
|
) |
const [inline] |
|
const NLMISC::CVector& NLSOUND::CSound::getDirectionVector |
( |
|
) |
const [inline] |
|
virtual uint32 NLSOUND::CSound::getDuration |
( |
|
) |
[pure virtual] |
|
float NLSOUND::CSound::getGain |
( |
void |
|
) |
const [inline] |
|
|
Return the gain.
Definition at line 87 of file sound.h.
References _Gain. |
bool NLSOUND::CSound::getLooping |
( |
|
) |
const [inline] |
|
|
Return the looping state.
Definition at line 85 of file sound.h.
References _Looping. |
virtual float NLSOUND::CSound::getMaxDistance |
( |
|
) |
const [inline, virtual] |
|
const std::string& NLSOUND::CSound::getName |
( |
void |
|
) |
const [inline] |
|
|
Return the name (must be unique).
Definition at line 105 of file sound.h.
References _Name. |
float NLSOUND::CSound::getPitch |
( |
void |
|
) |
const [inline] |
|
|
Return the pitch.
Definition at line 89 of file sound.h.
References _Pitch. |
virtual TSOUND_TYPE NLSOUND::CSound::getSoundType |
( |
|
) |
[pure virtual] |
|
virtual void NLSOUND::CSound::getSubSoundList |
( |
std::vector< std::pair< std::string, CSound * > > & |
subsounds |
) |
const [pure virtual] |
|
|
Used by the george sound plugin to check sound recursion (ie sound 'toto' use sound 'titi' witch also use sound 'toto' ...).
Implemented in NLSOUND::CBackgroundSound. |
void NLSOUND::CSound::importForm |
( |
const std::string & |
filename, |
|
|
NLGEORGES::UFormElm & |
root |
|
) |
[virtual] |
|
|
Load the sound parameters from georges' form.
Reimplemented in NLSOUND::CBackgroundSound.
Definition at line 127 of file sound.cpp.
References _ConeInnerAngle, _ConeOuterAngle, _ConeOuterGain, _Direction, _Gain, _Looping, _Name, _Pitch, _Priority, NLGEORGES::UFormElm::getValueByName, NLSOUND::HighestPri, NLSOUND::HighPri, NLSOUND::LowPri, NLSOUND::MidPri, NLMISC::Pi, NLSOUND::Sqrt12_2, x, y, and z. |
virtual bool NLSOUND::CSound::isDetailed |
( |
|
) |
const [pure virtual] |
|
bool NLSOUND::CSound::operator< |
( |
const CSound & |
otherSound |
) |
const [inline] |
|
|
Reimplemented in NLSOUND::CBackgroundSound.
Definition at line 111 of file sound.cpp.
References _ConeInnerAngle, _ConeOuterAngle, _ConeOuterGain, _Direction, _Gain, _Looping, _MaxDist, _Name, _Pitch, _Priority, s, NLMISC::IStream::serial, and NLMISC::IStream::serialEnum. |
void NLSOUND::CSound::setLooping |
( |
bool |
looping |
) |
[inline] |
|
Member Data Documentation
float NLSOUND::CSound::_ConeInnerAngle [protected]
|
|
float NLSOUND::CSound::_ConeOuterAngle [protected]
|
|
float NLSOUND::CSound::_ConeOuterGain [protected]
|
|
float NLSOUND::CSound::_Gain [protected]
|
|
bool NLSOUND::CSound::_Looping [protected]
|
|
float NLSOUND::CSound::_MaxDist [protected]
|
|
std::string NLSOUND::CSound::_Name [protected]
|
|
float NLSOUND::CSound::_Pitch [protected]
|
|
The documentation for this class was generated from the following files:
|
|