From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/a02251.html | 398 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 398 insertions(+) create mode 100644 docs/doxygen/nel/a02251.html (limited to 'docs/doxygen/nel/a02251.html') diff --git a/docs/doxygen/nel/a02251.html b/docs/doxygen/nel/a02251.html new file mode 100644 index 00000000..ebad5dcd --- /dev/null +++ b/docs/doxygen/nel/a02251.html @@ -0,0 +1,398 @@ + + +NeL: NLSOUND::CBackgroundSoundManager::TSoundData struct Reference + + + +
+

NLSOUND::CBackgroundSoundManager::TSoundData Struct Reference


Detailed Description

+Storage for all a sound in a layer. +

+ +

+Definition at line 238 of file background_sound_manager.h. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

void serial (NLMISC::IStream &s)

Data Fields

bool IsPath
 Flag for path/patatoid sound.

NLMISC::CVector MaxBox
 The max vector of the bounding box.

float MaxDist
 The max earing distance of the sound.

NLMISC::CVector MinBox
 The min vector of the bounding box.

std::vector< NLMISC::CVectorPoints
 The vector of points compositing the primitive.

bool Selected
 Flag telling if this sound is currently selected for play by bounding box.

CSoundSound
 The reference to the sound.

NLMISC::TStringId SoundName
 The name of the sound.

CSourceCommonSource
 A source instance of the sound (may be NULL).

float Surface
 The surface of the bounding box (used for patatoid competition).

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + +
void NLSOUND::CBackgroundSoundManager::TSoundData::serial NLMISC::IStream s  ) 
+
+ + + + + +
+   + + +

+ +

+Definition at line 1462 of file background_sound_manager.cpp. +

+References NLSOUND::CAudioMixerUser::getSoundId(), IsPath, NLMISC::CStringMapper::map(), MaxDist, s, Sound, and Source. +

+

01463 {
+01464         std::string str;
+01465 
+01466         if (s.isReading())
+01467         {
+01468                 CAudioMixerUser *mixer = CAudioMixerUser::instance();
+01469                 s.serial(str);
+01470                 SoundName = NLMISC::CStringMapper::map(str);
+01471                 Sound = mixer->getSoundId(SoundName);
+01472                 Source = NULL;
+01473                 Selected = false;
+01474         }
+01475         else
+01476         {
+01477                 s.serial(const_cast<std::string&>(NLMISC::CStringMapper::unmap(SoundName)));
+01478         }
+01479         s.serial(MinBox);
+01480         s.serial(MaxBox);
+01481         s.serial(Surface);
+01482         s.serial(MaxDist);
+01483         s.serial(IsPath);
+01484         s.serialCont(Points);
+01485 }
+
+


Field Documentation

+

+ + + + +
+ + +
bool NLSOUND::CBackgroundSoundManager::TSoundData::IsPath +
+
+ + + + + +
+   + + +

+Flag for path/patatoid sound. +

+ +

+Definition at line 256 of file background_sound_manager.h. +

+Referenced by NLSOUND::CBackgroundSoundManager::addSound(), serial(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

+

+ + + + +
+ + +
NLMISC::CVector NLSOUND::CBackgroundSoundManager::TSoundData::MaxBox +
+
+ + + + + +
+   + + +

+The max vector of the bounding box. +

+ +

+Definition at line 250 of file background_sound_manager.h. +

+Referenced by NLSOUND::CBackgroundSoundManager::addSound().

+

+ + + + +
+ + +
float NLSOUND::CBackgroundSoundManager::TSoundData::MaxDist +
+
+ + + + + +
+   + + +

+The max earing distance of the sound. +

+ +

+Definition at line 254 of file background_sound_manager.h. +

+Referenced by NLSOUND::CBackgroundSoundManager::addSound(), serial(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

+

+ + + + +
+ + +
NLMISC::CVector NLSOUND::CBackgroundSoundManager::TSoundData::MinBox +
+
+ + + + + +
+   + + +

+The min vector of the bounding box. +

+ +

+Definition at line 248 of file background_sound_manager.h. +

+Referenced by NLSOUND::CBackgroundSoundManager::addSound().

+

+ + + + +
+ + +
std::vector<NLMISC::CVector> NLSOUND::CBackgroundSoundManager::TSoundData::Points +
+
+ + + + + +
+   + + +

+The vector of points compositing the primitive. +

+ +

+Definition at line 258 of file background_sound_manager.h. +

+Referenced by NLSOUND::CBackgroundSoundManager::addSound(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

+

+ + + + +
+ + +
bool NLSOUND::CBackgroundSoundManager::TSoundData::Selected +
+
+ + + + + +
+   + + +

+Flag telling if this sound is currently selected for play by bounding box. +

+ +

+Definition at line 260 of file background_sound_manager.h. +

+Referenced by NLSOUND::CBackgroundSoundManager::addSound(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

+

+ + + + +
+ + +
CSound* NLSOUND::CBackgroundSoundManager::TSoundData::Sound +
+
+ + + + + +
+   + + +

+The reference to the sound. +

+ +

+Definition at line 243 of file background_sound_manager.h. +

+Referenced by NLSOUND::CBackgroundSoundManager::addSound(), serial(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

+

+ + + + +
+ + +
NLMISC::TStringId NLSOUND::CBackgroundSoundManager::TSoundData::SoundName +
+
+ + + + + +
+   + + +

+The name of the sound. +

+ +

+Definition at line 241 of file background_sound_manager.h. +

+Referenced by NLSOUND::CBackgroundSoundManager::addSound().

+

+ + + + +
+ + +
CSourceCommon* NLSOUND::CBackgroundSoundManager::TSoundData::Source +
+
+ + + + + +
+   + + +

+A source instance of the sound (may be NULL). +

+ +

+Definition at line 245 of file background_sound_manager.h. +

+Referenced by NLSOUND::CBackgroundSoundManager::addSound(), serial(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

+

+ + + + +
+ + +
float NLSOUND::CBackgroundSoundManager::TSoundData::Surface +
+
+ + + + + +
+   + + +

+The surface of the bounding box (used for patatoid competition). +

+ +

+Definition at line 252 of file background_sound_manager.h. +

+Referenced by NLSOUND::CBackgroundSoundManager::addSound(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

+


The documentation for this struct was generated from the following files: +
Generated on Tue Mar 16 14:32:09 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1