Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 24, 2009, 4:01:23 PM (14 years ago)
Author:
rgrieder
Message:

BaseSound should release the buffer upon destruction and the SoundManager should delete all remaining buffers and sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/sound/BaseSound.cc

    r6397 r6411  
    6060    {
    6161        this->stop();
     62        // Release buffer
     63        if (this->soundBuffer_ != NULL)
     64        {
     65            assert(GameMode::playsSound());
     66            SoundManager::getInstance().releaseSoundBuffer(this->soundBuffer_, this->bPooling_);
     67        }
    6268    }
    6369
Note: See TracChangeset for help on using the changeset viewer.