Changeset 8006 for code/branches/usability/src/orxonox/sound/AmbientSound.h
- Timestamp:
- Mar 1, 2011, 5:16:52 AM (14 years ago)
- Location:
- code/branches/usability
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability
- Property svn:mergeinfo changed
/code/branches/sound4 removed /code/branches/sound5 removed
- Property svn:mergeinfo changed
-
code/branches/usability/src/orxonox/sound/AmbientSound.h
r8005 r8006 22 22 * Author: 23 23 * Reto Grieder 24 * 24 * Kevin Young 25 25 * Co-authors: 26 * Kevin Young26 * ... 27 27 * 28 28 */ … … 31 31 #define _AmbientSound_H__ 32 32 33 #include <boost/thread.hpp> 34 35 #include "sound/SoundPrereqs.h" 33 #include "OrxonoxPrereqs.h" 36 34 37 35 #include "BaseSound.h" … … 41 39 { 42 40 /** 43 * The AmbientSound class implements the non-3D sound, i.e. sound files that are used for atmospheric 44 * highlighting. 45 * It interfaces with BaseSound and is controllable by MoodManager. 46 * Ambient sounds are always cross-faded. New sounds are registered and activated/deactivated as needed. 47 * 41 * The AmbientSound class is used to play background music. It can not be placed 42 * directly in a level file, use WorldAmbientSound instead. 48 43 */ 49 44 class _OrxonoxExport AmbientSound : public BaseSound, public MoodListener … … 70 65 ~AmbientSound() { } 71 66 72 bool doStop();73 void doPlay();74 75 67 private: 76 68 void preDestroy(); … … 84 76 std::string ambientSource_; //!< Analogous to source_, but mood independent 85 77 bool bPlayOnLoad_; //!< Play the sound immediately when loaded 86 87 boost::thread soundstreamthread_; // hacky solution for streaming88 void setStreamSource(const std::string& source);89 78 }; 90 79 }
Note: See TracChangeset
for help on using the changeset viewer.