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::CVector > | Points |
The vector of points compositing the primitive. | |
bool | Selected |
Flag telling if this sound is currently selected for play by bounding box. | |
CSound * | Sound |
The reference to the sound. | |
NLMISC::TStringId | SoundName |
The name of the sound. | |
CSourceCommon * | Source |
A source instance of the sound (may be NULL). | |
float | Surface |
The surface of the bounding box (used for patatoid competition). |
|
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 } |
|
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(). |
|
The max vector of the bounding box.
Definition at line 250 of file background_sound_manager.h. Referenced by NLSOUND::CBackgroundSoundManager::addSound(). |
|
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(). |
|
The min vector of the bounding box.
Definition at line 248 of file background_sound_manager.h. Referenced by NLSOUND::CBackgroundSoundManager::addSound(). |
|
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(). |
|
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(). |
|
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(). |
|
The name of the sound.
Definition at line 241 of file background_sound_manager.h. Referenced by NLSOUND::CBackgroundSoundManager::addSound(). |
|
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(). |
|
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(). |