Changeset 6102 for code/branches/sound3/src/orxonox/sound/BaseSound.cc
- Timestamp:
- Nov 20, 2009, 11:11:32 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound3/src/orxonox/sound/BaseSound.cc
r6071 r6102 37 37 #include "core/GameMode.h" 38 38 #include "core/Resource.h" 39 #include "core/XMLPort.h" 39 40 40 41 namespace orxonox … … 60 61 if (GameMode::playsSound()) 61 62 alDeleteSources(1, &this->audioSource_); 63 } 64 65 void BaseSound::XMLPortExtern(Element& xmlelement, XMLPort::Mode mode) 66 { 67 XMLPortParam(BaseSound, "volume", setVolume, getVolume, xmlelement, mode); 68 XMLPortParam(BaseSound, "loop", setLooping, getLooping, xmlelement, mode); 69 XMLPortParam(BaseSound, "play", play, isPlaying, xmlelement, mode); 70 XMLPortParam(BaseSound, "source", setSource, getSource, xmlelement, mode); 62 71 } 63 72
Note: See TracChangeset
for help on using the changeset viewer.