Changeset 6069 for code/branches/sound3/src/orxonox/sound/BaseSound.h
- Timestamp:
- Nov 15, 2009, 3:43:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound3/src/orxonox/sound/BaseSound.h
r6046 r6069 26 26 * 27 27 */ 28 28 29 #ifndef _BaseSound_H__ 29 30 #define _BaseSound_H__ … … 32 33 33 34 #include <string> 34 #include <OgreSharedPtr.h>35 35 #include <OgreDataStream.h> 36 36 #include "core/OrxonoxClass.h" … … 51 51 virtual void play(); 52 52 virtual void stop(); 53 v oid pause();53 virtual void pause(); 54 54 55 55 bool isPlaying(); … … 58 58 59 59 virtual void setSource(const std::string& source); 60 const std::string& getSource(){ return this->source_; }60 virtual const std::string& getSource() const { return this->source_; } 61 61 62 bool getPlayOnLoad() { return this->bPlayOnLoad_; }63 void setPlayOnLoad(bool val);62 void setVolume(float vol); 63 float getVolume() const { return this->volume_; } 64 64 65 bool getLoop() { return this->bLoop_; } 65 bool getPlayOnLoad() const { return this->bPlayOnLoad_; } 66 void setPlayOnLoad(bool val) { this->bPlayOnLoad_ = val; } 67 68 bool getLoop() const { return this->bLoop_; } 66 69 void setLoop(bool val) { this->bLoop_ = val; } 67 70 68 ALuint getALAudioSource(void);71 //ALuint getALAudioSource(void); 69 72 70 73 protected: … … 76 79 77 80 private: 78 std::string source_; 79 bool bPlayOnLoad_; 80 bool bLoop_; 81 DataStreamPtr dataStream_; 81 std::string source_; 82 float volume_; 83 bool bPlayOnLoad_; 84 bool bLoop_; 85 DataStreamPtr dataStream_; 82 86 }; 83 87 }
Note: See TracChangeset
for help on using the changeset viewer.