Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

kerosin::SoundServer Class Reference

#include <soundserver.h>

Inheritance diagram for kerosin::SoundServer:

Inheritance graph
[legend]
Collaboration diagram for kerosin::SoundServer:

Collaboration graph
[legend]
List of all members.

Public Types

enum  ESoundQuality {
  SOUNDQUALITY_BEST = 48000, SOUNDQUALITY_GOOD = 44100, SOUNDQUALITY_AVERAGE = 22000, SOUNDQUALITY_BAD = 11000,
  SOUNDQUALITY_VERYBAD = 8000
}

Public Member Functions

 SoundServer ()
virtual ~SoundServer ()
bool Init (const std::string &sndSysName)
float GetCPU ()
boost::shared_ptr< SoundEffectLoadEffect (const std::string &inName)
boost::shared_ptr< SoundStreamLoadStream (const std::string &inName)
boost::shared_ptr< SoundModuleLoadModule (const std::string &inName)

Private Types

typedef std::map< std::string,
boost::shared_ptr< SoundObject > > 
TSoundHashMap

Private Member Functions

void Reset ()
 this function resets the cached sounds in the hashmaps
bool LoadSoundObject (const std::string &inName, const TSoundHashMap &map, boost::shared_ptr< SoundObject > &soundObject) const
 a helper function which wraps some common loading code (trivial rejects, etc..)
 SoundServer (const SoundServer &)
SoundServeroperator= (const SoundServer &)

Private Attributes

boost::shared_ptr< SoundSystemmSoundSystem
TSoundHashMap mEffects
TSoundHashMap mModules
TSoundHashMap mStreams
ESoundQuality mQuality

Detailed Description

Definition at line 66 of file soundserver.h.


Member Typedef Documentation

typedef std::map<std::string, boost::shared_ptr<SoundObject> > kerosin::SoundServer::TSoundHashMap [private]
 

Definition at line 85 of file soundserver.h.


Member Enumeration Documentation

enum kerosin::SoundServer::ESoundQuality
 

Enumerator:
SOUNDQUALITY_BEST 
SOUNDQUALITY_GOOD 
SOUNDQUALITY_AVERAGE 
SOUNDQUALITY_BAD 
SOUNDQUALITY_VERYBAD 

Definition at line 73 of file soundserver.h.


Constructor & Destructor Documentation

SoundServer::SoundServer  ) 
 

Definition at line 44 of file soundserver.cpp.

SoundServer::~SoundServer  )  [virtual]
 

Definition at line 48 of file soundserver.cpp.

References Reset().

Here is the call graph for this function:

kerosin::SoundServer::SoundServer const SoundServer  )  [private]
 


Member Function Documentation

float SoundServer::GetCPU  ) 
 

Definition at line 79 of file soundserver.cpp.

References mSoundSystem.

bool SoundServer::Init const std::string &  sndSysName  ) 
 

Definition at line 53 of file soundserver.cpp.

References zeitgeist::Object::GetCore(), zeitgeist::Object::GetLog(), mQuality, mSoundSystem, and Reset().

Here is the call graph for this function:

boost::shared_ptr<SoundEffect> kerosin::SoundServer::LoadEffect const std::string &  inName  ) 
 

boost::shared_ptr<SoundModule> kerosin::SoundServer::LoadModule const std::string &  inName  ) 
 

bool SoundServer::LoadSoundObject const std::string &  inName,
const TSoundHashMap map,
boost::shared_ptr< SoundObject > &  soundObject
const [private]
 

a helper function which wraps some common loading code (trivial rejects, etc..)

Definition at line 215 of file soundserver.cpp.

References zeitgeist::Object::GetLog(), and mSoundSystem.

Here is the call graph for this function:

boost::shared_ptr<SoundStream> kerosin::SoundServer::LoadStream const std::string &  inName  ) 
 

SoundServer& kerosin::SoundServer::operator= const SoundServer  )  [private]
 

void SoundServer::Reset  )  [private]
 

this function resets the cached sounds in the hashmaps

Definition at line 202 of file soundserver.cpp.

References mEffects, mModules, mSoundSystem, and mStreams.

Referenced by Init(), and ~SoundServer().


Member Data Documentation

TSoundHashMap kerosin::SoundServer::mEffects [private]
 

Definition at line 115 of file soundserver.h.

Referenced by Reset().

TSoundHashMap kerosin::SoundServer::mModules [private]
 

Definition at line 116 of file soundserver.h.

Referenced by Reset().

ESoundQuality kerosin::SoundServer::mQuality [private]
 

Definition at line 120 of file soundserver.h.

Referenced by Init().

boost::shared_ptr<SoundSystem> kerosin::SoundServer::mSoundSystem [private]
 

Definition at line 113 of file soundserver.h.

Referenced by GetCPU(), Init(), LoadSoundObject(), and Reset().

TSoundHashMap kerosin::SoundServer::mStreams [private]
 

Definition at line 117 of file soundserver.h.

Referenced by Reset().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:43:57 2006 for rcssserver3d by  doxygen 1.4.4