Changeset 4205 in orxonox.OLD for orxonox/branches/openAL/src/lib/sound
- Timestamp:
- May 17, 2005, 2:09:59 AM (20 years ago)
- Location:
- orxonox/branches/openAL/src/lib/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/openAL/src/lib/sound/sound_engine.cc
r4204 r4205 234 234 235 235 // updating the Listeners Position 236 if ( this->listener)236 if (likely(this->listener != NULL)) 237 237 { 238 238 alListener3f(AL_POSITION, … … 256 256 while (enumSource) 257 257 { 258 alSource3f(enumSource->getID(), AL_POSITION, 259 enumSource->getNode()->getAbsCoor().x, 260 enumSource->getNode()->getAbsCoor().y, 261 enumSource->getNode()->getAbsCoor().z); 262 alSource3f(enumSource->getID(), AL_VELOCITY, 263 enumSource->getNode()->getVelocity().x, 264 enumSource->getNode()->getVelocity().y, 265 enumSource->getNode()->getVelocity().z); 266 258 if (likely(enumSource->getNode()!=NULL)) 259 { 260 alSource3f(enumSource->getID(), AL_POSITION, 261 enumSource->getNode()->getAbsCoor().x, 262 enumSource->getNode()->getAbsCoor().y, 263 enumSource->getNode()->getAbsCoor().z); 264 alSource3f(enumSource->getID(), AL_VELOCITY, 265 enumSource->getNode()->getVelocity().x, 266 enumSource->getNode()->getVelocity().y, 267 enumSource->getNode()->getVelocity().z); 268 } 267 269 enumSource = iterator->nextElement(); 268 270 } -
orxonox/branches/openAL/src/lib/sound/sound_engine.h
r4204 r4205 71 71 virtual ~SoundEngine(void); 72 72 73 SoundSource* createSource(const char* fileName, PNode* sourceNode );73 SoundSource* createSource(const char* fileName, PNode* sourceNode = NULL); 74 74 75 75 void setListener(PNode* listener);
Note: See TracChangeset
for help on using the changeset viewer.