Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4830 in orxonox.OLD for orxonox/trunk/src/lib/sound


Ignore:
Timestamp:
Jul 11, 2005, 5:43:37 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: implemented aim

Location:
orxonox/trunk/src/lib/sound
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/sound/sound_engine.cc

    r4746 r4830  
    378378void SoundEngine::flushAllBuffers()
    379379{
    380     tIterator<SoundBuffer>* bufferIterator = this->bufferList->getIterator();
     380  tIterator<SoundBuffer>* bufferIterator = this->bufferList->getIterator();
    381381  SoundBuffer* enumBuffer = bufferIterator->nextElement();
    382382  while (enumBuffer)
     
    389389
    390390/**
     391  * @brief SourceEngine::flushAllBuffers
     392 */
     393void SoundEngine::flushAllSources()
     394{
     395  tIterator<SoundSource>* Iterator = this->sourceList->getIterator();
     396  SoundSource* enumSource = Iterator->nextElement();
     397  while (enumSource)
     398  {
     399    delete enumSource;
     400    enumSource = Iterator->nextElement();
     401  }
     402  delete Iterator;
     403}
     404
     405
     406/**
    391407   \brief initializes Audio in general
    392408*/
  • orxonox/trunk/src/lib/sound/sound_engine.h

    r4761 r4830  
    9191  void flushUnusedBuffers();
    9292  void flushAllBuffers();
     93  void flushAllSources();
    9394  bool initAudio();
    9495
Note: See TracChangeset for help on using the changeset viewer.