Changeset 8005 for code/branches/usability/src/orxonox/sound/AmbientSound.h
- Timestamp:
- Mar 1, 2011, 5:10:29 AM (13 years ago)
- Location:
- code/branches/usability
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability
- Property svn:mergeinfo changed
/code/branches/sound4 (added) merged: 6435,6476,6504 /code/branches/sound5 (added) merged: 6505-6511,6562,6674,6726,6729-6730,6733,6767,6769,6931,6962,7720
- Property svn:mergeinfo changed
-
code/branches/usability/src/orxonox/sound/AmbientSound.h
r7856 r8005 22 22 * Author: 23 23 * Reto Grieder 24 * 25 * Co-authors: 24 26 * Kevin Young 25 * Co-authors:26 * ...27 27 * 28 28 */ … … 31 31 #define _AmbientSound_H__ 32 32 33 #include "OrxonoxPrereqs.h" 33 #include <boost/thread.hpp> 34 35 #include "sound/SoundPrereqs.h" 34 36 35 37 #include "BaseSound.h" … … 39 41 { 40 42 /** 41 * The AmbientSound class is used to play background music. It can not be placed 42 * directly in a level file, use WorldAmbientSound instead. 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 * 43 48 */ 44 49 class _OrxonoxExport AmbientSound : public BaseSound, public MoodListener … … 65 70 ~AmbientSound() { } 66 71 72 bool doStop(); 73 void doPlay(); 74 67 75 private: 68 76 void preDestroy(); … … 76 84 std::string ambientSource_; //!< Analogous to source_, but mood independent 77 85 bool bPlayOnLoad_; //!< Play the sound immediately when loaded 86 87 boost::thread soundstreamthread_; // hacky solution for streaming 88 void setStreamSource(const std::string& source); 78 89 }; 79 90 }
Note: See TracChangeset
for help on using the changeset viewer.