Changeset 6100 for code/branches/sound3/src
- Timestamp:
- Nov 19, 2009, 9:01:16 PM (15 years ago)
- Location:
- code/branches/sound3/src/orxonox/sound
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound3/src/orxonox/sound/AmbientSound.cc
r6071 r6100 125 125 void AmbientSound::changedActivity() 126 126 { 127 COUT(3) << "Sound: " << this->getSource() << ": ChangedActivity: " << this->isActive() << std::endl; 128 this->BaseObject::changedActivity(); 127 SUPER(AmbientSound, changedActivity); 129 128 if (this->isActive()) 130 {131 129 this->play(); 132 }133 130 else 134 {135 131 this->stop(); 136 }137 132 } 138 133 } -
code/branches/sound3/src/orxonox/sound/WorldSound.cc
r6071 r6100 89 89 } 90 90 } 91 92 void WorldSound::changedActivity() 93 { 94 SUPER(WorldSound, changedActivity); 95 if (this->isActive()) 96 this->play(); 97 else 98 this->stop(); 99 } 91 100 } -
code/branches/sound3/src/orxonox/sound/WorldSound.h
r6069 r6100 50 50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 51 51 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); 52 virtual void changedActivity(); 52 53 53 54 virtual void tick(float dt);
Note: See TracChangeset
for help on using the changeset viewer.