Changeset 6071 for code/branches/sound3/src/orxonox/sound/BaseSound.h
- Timestamp:
- Nov 15, 2009, 10:36:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound3/src/orxonox/sound/BaseSound.h
r6069 r6071 53 53 virtual void pause(); 54 54 55 bool isPlaying() ;56 bool isPaused() ;57 bool isStopped() ;55 bool isPlaying() { return this->state_ = Playing; } 56 bool isPaused() { return this->state_ = Paused; } 57 bool isStopped() { return this->state_ = Stopped; } 58 58 59 59 virtual void setSource(const std::string& source); … … 63 63 float getVolume() const { return this->volume_; } 64 64 65 bool getPlayOnLoad() const { return this->bPlayOnLoad_; } 66 void setPlayOnLoad(bool val) { this->bPlayOnLoad_ = val; } 67 68 bool getLoop() const { return this->bLoop_; } 69 void setLoop(bool val) { this->bLoop_ = val; } 65 bool getLooping() const { return this->bLoop_; } 66 void setLooping(bool val); 70 67 71 68 //ALuint getALAudioSource(void); … … 73 70 protected: 74 71 ALuint loadOggFile(); 75 ALint getSourceState();76 72 77 73 ALuint audioSource_; … … 79 75 80 76 private: 77 enum State 78 { 79 Stopped, 80 Playing, 81 Paused 82 }; 83 81 84 std::string source_; 82 85 float volume_; 83 bool bPlayOnLoad_;84 86 bool bLoop_; 87 State state_; 85 88 DataStreamPtr dataStream_; 86 89 };
Note: See TracChangeset
for help on using the changeset viewer.