orxonox::SoundBase Class Reference

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

Inheritance diagram for orxonox::SoundBase:

orxonox::SoundMainMenu

List of all members.

Public Member Functions

void attachToEntity (WorldEntity *entity)
bool isPaused ()
bool isPlaying ()
bool isStopped ()
bool loadFile (std::string filename)
void pause ()
void play (bool loop=false)
 SoundBase (WorldEntity *entity=NULL)
void stop ()
void update ()
 ~SoundBase ()

Private Member Functions

ALint getSourceState ()
ALuint loadOggFile (const std::string &filename)

Private Attributes

ALuint buffer_
WorldEntityentity_
ALuint source_


Detailed Description

The SoudBase class is the base class for all sound file loader classes. It server as main interface to the OpenAL library.

Constructor & Destructor Documentation

orxonox::SoundBase::SoundBase ( WorldEntity entity = NULL  ) 

orxonox::SoundBase::~SoundBase (  ) 

References buffer_, and source_.


Member Function Documentation

void orxonox::SoundBase::attachToEntity ( WorldEntity entity  ) 

References entity_, and update().

Referenced by orxonox::Engine::addToSpaceShip().

ALint orxonox::SoundBase::getSourceState (  )  [private]

References source_.

Referenced by isPaused(), isPlaying(), and isStopped().

bool orxonox::SoundBase::isPaused (  ) 

References getSourceState(), and source_.

bool orxonox::SoundBase::isPlaying (  ) 

References getSourceState(), and source_.

bool orxonox::SoundBase::isStopped (  ) 

References getSourceState(), and source_.

bool orxonox::SoundBase::loadFile ( std::string  filename  ) 

ALuint orxonox::SoundBase::loadOggFile ( const std::string filename  )  [private]

References COUT.

Referenced by loadFile().

void orxonox::SoundBase::pause (  ) 

References source_.

void orxonox::SoundBase::play ( bool  loop = false  ) 

void orxonox::SoundBase::stop (  ) 

References source_.

void orxonox::SoundBase::update ( void   ) 


Member Data Documentation

Referenced by loadFile(), SoundBase(), and ~SoundBase().

Referenced by attachToEntity(), SoundBase(), and update().


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