Changeset 6069 for code/branches/sound3/src/orxonox/sound/AmbientSound.h
- Timestamp:
- Nov 15, 2009, 3:43:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound3/src/orxonox/sound/AmbientSound.h
r6046 r6069 22 22 * Author: 23 23 * Reto Grieder 24 * Kevin Young 24 25 * Co-authors: 25 26 * ... 26 27 * 27 28 */ 29 28 30 #ifndef _AmbientSound_H__ 29 31 #define _AmbientSound_H__ … … 43 45 class _OrxonoxExport AmbientSound : public BaseSound, public BaseObject 44 46 { 47 friend class SoundManager; 48 45 49 public: 46 50 AmbientSound(BaseObject* creator); 47 51 virtual ~AmbientSound(); 48 49 virtual void play();50 void replay(); // Continue playing without re-registering the sound51 virtual void stop();52 void doStop();53 54 virtual void setSource(const std::string& source);55 52 56 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); … … 58 55 virtual void changedActivity(); 59 56 57 virtual void play(); 58 virtual void stop(); 59 virtual void pause(); 60 61 virtual void setSource(const std::string& source); 60 62 61 63 private: 64 void doPlay(); // Continue playing without re-registering the sound 65 void doStop(); 66 void doPause(); 62 67 }; 63 68 }
Note: See TracChangeset
for help on using the changeset viewer.