30 #ifndef _AmbientSound_H__ 31 #define _AmbientSound_H__ 52 virtual void play()
override;
53 virtual bool stop()
override;
54 virtual void pause()
override;
58 {
return this->ambientSource_; }
60 void setPlayOnLoad(
bool val);
62 {
return this->bPlayOnLoad_; }
68 virtual void preDestroy()
override;
69 virtual float getRealVolume()
override;
70 virtual bool moodChanged(
const std::string& mood)
override;
72 { this->setAmbientSource(this->ambientSource_); }
74 { this->setPlayOnLoad(this->bPlayOnLoad_); }
void source(const std::string &filename)
Reads the content of a file and executes the commands in it line by line.
Definition: ConsoleCommandCompilation.cc:167
void playOnLoadChanged()
Definition: AmbientSound.h:73
void ambientSourceChanged()
Definition: AmbientSound.h:71
::std::string string
Definition: gtest-port.h:756
Definition: MoodManager.h:44
const std::string & getAmbientSource() const
Definition: AmbientSound.h:57
The BaseSound class is the base class for all sound file loader classes.
Definition: BaseSound.h:45
std::string ambientSource_
Analogous to source_, but mood independent.
Definition: AmbientSound.h:76
This class is used to play and control ambient sound in a level file.
Definition: WorldAmbientSound.h:46
The SoundManager class manages the OpenAL device, context and listener position.
Definition: SoundManager.h:60
~AmbientSound()
Definition: AmbientSound.h:65
bool getPlayOnLoad() const
Definition: AmbientSound.h:61
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
bool bPlayOnLoad_
Play the sound immediately when loaded.
Definition: AmbientSound.h:77
Shared library macros, enums, constants and forward declarations for the orxonox library ...
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
The AmbientSound class is used to play background music.
Definition: AmbientSound.h:44