orxonox::SoundManager Class Reference

#include <src/orxonox/sound/SoundManager.h>

Inheritance diagram for orxonox::SoundManager:

orxonox::Tickable orxonox::OrxonoxClass

List of all members.

Public Member Functions

void addSound (SoundBase *sound)
bool isSoundAvailable ()
void removeSound (SoundBase *sound)
 SoundManager ()
void tick (float dt)
 ~SoundManager ()

Static Public Member Functions

static SoundManagergetInstance ()

Private Attributes

ALCcontextcontext_
ALCdevicedevice_
bool soundavailable_
std::list< SoundBase * > soundlist_

Static Private Attributes

static SoundManagersingletonRef_s = NULL


Detailed Description

The SoundManager class manages the OpenAL device, context and listener position. It has a list of all SoundBase objects and calls their update function every tick. It is a singleton.

Constructor & Destructor Documentation

orxonox::SoundManager::SoundManager (  ) 

Default constructor

References context_, COUT, device_, singletonRef_s, and soundavailable_.

orxonox::SoundManager::~SoundManager (  ) 

References context_, device_, and singletonRef_s.


Member Function Documentation

void orxonox::SoundManager::addSound ( SoundBase sound  ) 

Add a SoundBase object to the list. Every SoundBase object should be in this list.

Parameters:
sound Pointer to the SoundBase object to add

References soundlist_.

Referenced by orxonox::SoundBase::SoundBase().

static SoundManager& orxonox::SoundManager::getInstance (  )  [inline, static]

bool orxonox::SoundManager::isSoundAvailable (  ) 

Check if sound is available

References soundavailable_.

void orxonox::SoundManager::removeSound ( SoundBase sound  ) 

Remove a SoundBase object from the list and destroy it.

References soundlist_.

void orxonox::SoundManager::tick ( float  dt  )  [virtual]


Member Data Documentation

Referenced by SoundManager(), and ~SoundManager().

Referenced by SoundManager(), and ~SoundManager().

Referenced by SoundManager(), and ~SoundManager().

Referenced by isSoundAvailable(), and SoundManager().

Referenced by addSound(), removeSound(), and tick().


The documentation for this class was generated from the following files:

Generated on Tue Jul 28 16:23:04 2009 for Orxonox by  doxygen 1.5.6