#include <src/orxonox/sound/SoundBase.h>
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_ |
WorldEntity * | entity_ |
ALuint | source_ |
orxonox::SoundBase::SoundBase | ( | WorldEntity * | entity = NULL |
) |
References orxonox::SoundManager::addSound(), buffer_, entity_, orxonox::SoundManager::getInstance(), and source_.
void orxonox::SoundBase::attachToEntity | ( | WorldEntity * | entity | ) |
ALint orxonox::SoundBase::getSourceState | ( | ) | [private] |
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] |
void orxonox::SoundBase::pause | ( | ) |
References source_.
void orxonox::SoundBase::play | ( | bool | loop = false |
) |
void orxonox::SoundBase::stop | ( | ) |
References source_.
void orxonox::SoundBase::update | ( | void | ) |
ALuint orxonox::SoundBase::buffer_ [private] |
Referenced by loadFile(), SoundBase(), and ~SoundBase().
WorldEntity* orxonox::SoundBase::entity_ [private] |
Referenced by attachToEntity(), SoundBase(), and update().
ALuint orxonox::SoundBase::source_ [private] |
Referenced by getSourceState(), isPaused(), isPlaying(), isStopped(), loadFile(), pause(), play(), SoundBase(), stop(), update(), and ~SoundBase().