Changeset 6188 for code/branches/presentation2/src/orxonox/sound
- Timestamp:
- Dec 1, 2009, 6:49:48 PM (15 years ago)
- Location:
- code/branches/presentation2/src/orxonox/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/BaseSound.cc
r6186 r6188 69 69 XMLPortParam(BaseSound, "volume", setVolume, getVolume, xmlelement, mode); 70 70 XMLPortParam(BaseSound, "loop", setLooping, getLooping, xmlelement, mode); 71 XMLPortParam(BaseSound, "play", play,isPlaying, xmlelement, mode);71 XMLPortParam(BaseSound, "play", setPlaying, isPlaying, xmlelement, mode); 72 72 XMLPortParam(BaseSound, "source", setSource, getSource, xmlelement, mode); 73 73 } -
code/branches/presentation2/src/orxonox/sound/BaseSound.h
r6186 r6188 59 59 bool isStopped() { return this->state_ == Stopped; } 60 60 61 void setPlaying(bool val) 62 { val ? this->play() : this->stop(); } 63 61 64 virtual void setSource(const std::string& source); 62 65 virtual const std::string& getSource() const { return this->source_; }
Note: See TracChangeset
for help on using the changeset viewer.