- Timestamp:
- Dec 9, 2009, 10:09:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/BaseSound.h
r6255 r6307 68 68 virtual void setSource(const std::string& source); 69 69 virtual const std::string& getSource() const { return this->source_; } 70 inline void sourceChanged(){ this->setSource(this->source_); } 70 71 71 72 void setVolume(float vol); 72 73 float getVolume() const { return this->volume_; } 74 inline void volumeChanged(){ this->setVolume(this->volume_); } 73 75 74 76 virtual float getVolumeGain(); 75 77 void updateVolume(void); 76 78 77 bool getLooping() const { return this->bLoop _; }79 bool getLooping() const { return this->bLooping_; } 78 80 void setLooping(bool val); 81 inline void loopingChanged(){ this->setLooping(this->bLooping_); } 79 82 80 83 float getPitch() const { return this->pitch_; } 81 84 void setPitch(float pitch); 85 inline void pitchChanged(){ this->setPitch(this->pitch_); } 82 86 83 87 //ALuint getALAudioSource(void); 84 88 85 89 protected: 86 ALint getSourceState() const;87 88 ALuint audioSource_;89 bool bPooling_;90 shared_ptr<SoundBuffer> soundBuffer_;91 92 private:93 90 enum State 94 91 { … … 97 94 Paused 98 95 }; 96 ALint getSourceState() const; 99 97 98 ALuint audioSource_; 99 bool bPooling_; 100 shared_ptr<SoundBuffer> soundBuffer_; 100 101 std::string source_; 101 102 float volume_; 102 bool bLoop _;103 bool bLooping_; 103 104 State state_; 104 105 float pitch_; 106 107 private: 105 108 DataStreamPtr dataStream_; 106 109 };
Note: See TracChangeset
for help on using the changeset viewer.