LandscapeSoundManager Class Reference

#include <LandscapeSoundManager.h>

List of all members.

Public Member Functions

void addSounds ()
void simulate (float frameTime)
void cleanUp ()

Static Public Member Functions

static
LandscapeSoundManager
instance ()

Protected Member Functions

void loadSound (std::vector< LandscapeInclude * > &sounds)

Protected Attributes

std::list
< LandscapeSoundManagerEntry
entries_
float lastTime_
bool haveSound_

Static Protected Attributes

static
LandscapeSoundManager
instance_

Private Member Functions

 LandscapeSoundManager ()
virtual ~LandscapeSoundManager ()

Classes

struct  LandscapeSoundManagerEntry


Detailed Description

Definition at line 31 of file LandscapeSoundManager.h.


Constructor & Destructor Documentation

LandscapeSoundManager::LandscapeSoundManager (  )  [private]

Definition at line 40 of file LandscapeSoundManager.cpp.

Referenced by instance().

LandscapeSoundManager::~LandscapeSoundManager (  )  [private, virtual]

Definition at line 45 of file LandscapeSoundManager.cpp.


Member Function Documentation

LandscapeSoundManager * LandscapeSoundManager::instance (  )  [static]

Definition at line 34 of file LandscapeSoundManager.cpp.

References instance_, and LandscapeSoundManager().

Referenced by Landscape::generate(), ClientReloadAdaptor::reloadLandscapeObjects(), and Landscape::simulate().

void LandscapeSoundManager::addSounds (  ) 

Definition at line 64 of file LandscapeSoundManager.cpp.

References cleanUp(), LandscapeMaps::getDefinitions(), LandscapeDefinitionCache::getDefn(), ScorchedContext::getLandscapeMaps(), LandscapeDefinitionCache::getTex(), haveSound_, LandscapeTexDefn::includes, ScorchedClient::instance(), loadSound(), LandscapeDefn::texDefn, and LandscapeTex::texDefn.

Referenced by Landscape::generate(), ClientReloadAdaptor::reloadLandscapeObjects(), and simulate().

void LandscapeSoundManager::simulate ( float  frameTime  ) 

Definition at line 125 of file LandscapeSoundManager.cpp.

References addSounds(), cleanUp(), entries_, LandscapeSoundTiming::getNextEventTime(), haveSound_, LandscapeSoundManager::LandscapeSoundManagerEntry::initData, OptionsDisplay::instance(), lastTime_, LandscapeSoundSound::play(), LandscapeSoundType::position, LandscapeSoundManager::LandscapeSoundManagerEntry::removed, VirtualSoundSource::setGain(), LandscapeSoundPosition::setPosition(), LandscapeSoundType::sound, LandscapeSoundManager::LandscapeSoundManagerEntry::soundSource, LandscapeSoundManager::LandscapeSoundManagerEntry::soundType, VirtualSoundSource::stop(), LandscapeSoundManager::LandscapeSoundManagerEntry::timeLeft, and LandscapeSoundType::timing.

Referenced by Landscape::simulate().

void LandscapeSoundManager::cleanUp (  ) 

Definition at line 49 of file LandscapeSoundManager.cpp.

References entries_, haveSound_, and LandscapeSoundManager::LandscapeSoundManagerEntry::soundSource.

Referenced by addSounds(), and simulate().

void LandscapeSoundManager::loadSound ( std::vector< LandscapeInclude * > &  sounds  )  [protected]

Definition at line 79 of file LandscapeSoundManager.cpp.

References VirtualSoundPriority::eEnvironment, entries_, LandscapeSoundPosition::getInitCount(), LandscapeSoundPosition::getInitData(), LandscapeSoundTiming::getNextEventTime(), LandscapeSoundManager::LandscapeSoundManagerEntry::initData, LandscapeSoundSound::play(), LandscapeSoundType::position, LandscapeSoundManager::LandscapeSoundManagerEntry::removed, LandscapeSoundPosition::setPosition(), LandscapeSoundType::sound, LandscapeInclude::sounds, LandscapeSoundManager::LandscapeSoundManagerEntry::soundSource, LandscapeSoundManager::LandscapeSoundManagerEntry::soundType, LandscapeSoundManager::LandscapeSoundManagerEntry::timeLeft, and LandscapeSoundType::timing.

Referenced by addSounds().


Member Data Documentation

LandscapeSoundManager * LandscapeSoundManager::instance_ [static, protected]

Definition at line 41 of file LandscapeSoundManager.h.

Referenced by instance().

std::list<LandscapeSoundManagerEntry> LandscapeSoundManager::entries_ [protected]

Definition at line 56 of file LandscapeSoundManager.h.

Referenced by cleanUp(), loadSound(), and simulate().

float LandscapeSoundManager::lastTime_ [protected]

Definition at line 57 of file LandscapeSoundManager.h.

Referenced by simulate().

bool LandscapeSoundManager::haveSound_ [protected]

Definition at line 58 of file LandscapeSoundManager.h.

Referenced by addSounds(), cleanUp(), and simulate().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:03 2009 for Scorched3D by  doxygen 1.5.3