|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLSOUND::CBackgroundSoundManager Class ReferenceThis manager handle the background sound : primitive positioned sound (point, path and patatoid supported) primitive positioned effect (patatoid only) primitive positioned sample bank (patatoid only) A set of 16 application definable flag that can be used in background sound to filter the sub sounds of a background sound.
More...
#include <background_sound_manager.h>
List of all members.
Detailed Description
This manager handle the background sound : primitive positioned sound (point, path and patatoid supported) primitive positioned effect (patatoid only) primitive positioned sample bank (patatoid only) A set of 16 application definable flag that can be used in background sound to filter the sub sounds of a background sound.
Sounds can be put in three separate layer (named a, b and c). In each layer, sounds patatoid are concurent and the smaller in surface muffle the other sounds.
Effets are managed according to the EAX capacity of the driver.
Sample bank patatoid are used to dynamicaly load/unload the sample banks will the player walk the univers.
-
Author:
-
Boris Boucher , Nevrax France
-
Date:
-
2002
Definition at line 74 of file background_sound_manager.h.
Constructor & Destructor Documentation
NLSOUND::CBackgroundSoundManager::CBackgroundSoundManager |
( |
|
) |
[private] |
|
NLSOUND::CBackgroundSoundManager::~CBackgroundSoundManager |
( |
|
) |
[private, virtual] |
|
Member Function Documentation
void NLSOUND::CBackgroundSoundManager::addSound |
( |
const std::string & |
soundName, |
|
|
const std::vector< NLLIGO::CPrimVector > & |
points, |
|
|
bool |
isPath |
|
) |
[private] |
|
const std::vector<NLMISC::CVector>& NLSOUND::CBackgroundSoundManager::getZone |
( |
uint32 |
zone, |
|
|
bool * |
isPath = 0 |
|
) |
|
|
|
Return a patatoid. If isPath is not null, set it.
|
CVector NLSOUND::CBackgroundSoundManager::getZoneSourcePos |
( |
uint32 |
zone |
) |
|
|
void NLSOUND::CBackgroundSoundManager::load |
( |
const std::string & |
continent |
) |
|
|
|
Load background sound for a continent.
It'll automatically unload the old continent before loading the new one. This method load the 'audio' regions (specifying the sounds), the 'effect' regions and the 'sample' regions. Continent is for example "matis" or "fyros". It'll add .prim to the continent name and lookup() to find zones. So, don't forget to add sound .prim in the CPath system for the lookup |
void NLSOUND::CBackgroundSoundManager::loadEffecsFromRegion |
( |
const NLLIGO::CPrimRegion & |
region |
) |
|
|
void NLSOUND::CBackgroundSoundManager::loadSamplesFromRegion |
( |
const NLLIGO::CPrimRegion & |
region |
) |
|
|
void NLSOUND::CBackgroundSoundManager::loadSoundsFromRegion |
( |
const NLLIGO::CPrimRegion & |
region |
) |
|
|
|
Load the background sounds from a CPrimRegion class.
|
void NLSOUND::CBackgroundSoundManager::play |
( |
|
) |
|
|
void NLSOUND::CBackgroundSoundManager::setListenerPosition |
( |
const NLMISC::CVector & |
listenerPosition |
) |
|
|
|
Call this method when the listener position change.
|
template<class CharType> |
std::vector<std::basic_string<CharType> > NLSOUND::CBackgroundSoundManager::split |
( |
const std::basic_string< CharType > & |
str, |
|
|
CharType |
splitTag |
|
) |
[inline, private] |
|
void NLSOUND::CBackgroundSoundManager::stop |
( |
|
) |
|
|
void NLSOUND::CBackgroundSoundManager::unload |
( |
|
) |
|
|
void NLSOUND::CBackgroundSoundManager::updateBackgroundStatus |
( |
|
) |
|
|
Friends And Related Function Documentation
friend class CAudioMixerUser [friend]
|
|
Member Data Documentation
std::vector<TBanksData> NLSOUND::CBackgroundSoundManager::_Banks [private]
|
|
std::set<std::string> NLSOUND::CBackgroundSoundManager::_LoadedBanks [private]
|
|
bool NLSOUND::CBackgroundSoundManager::_Playing [private]
|
|
The documentation for this class was generated from the following files:
|
|