Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9721 in orxonox.OLD


Ignore:
Timestamp:
Sep 2, 2006, 1:38:44 PM (18 years ago)
Author:
bensch
Message:

soundBuffers are Resources, and are not getting deleted by any engine

Location:
branches/new_class_id/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/shell/some_shell_commands.cc

    r9709 r9721  
    5252      ->completionPlugin(0, CompletorFileSystem());
    5353
     54#include "loading/resource_manager.h"
     55SHELL_COMMAND(debug, ResourceManager, debug);
  • branches/new_class_id/src/lib/sound/sound_engine.cc

    r9715 r9721  
    8282
    8383    // deleting all the SoundBuffers
    84     while(!SoundBuffer::objectList().empty())
    85       ResourceManager::getInstance()->unload(SoundBuffer::objectList().front());
     84    //    while(!SoundBuffer::objectList().empty())
     85    //ResourceManager::getInstance()->unload(SoundBuffer::objectList().front());
    8686
    8787    // removing openAL from AudioResource
  • branches/new_class_id/src/lib/util/loading/resource_manager.cc

    r9715 r9721  
    839839  {
    840840    PRINT(0)("-----------------------------------------\n");
    841     PRINT(0)("Name: %s; References: %d; Type: %s ", (*resource)->name.c_str(), (*resource)->count, ResourceManager::ResourceTypeToChar((*resource)->type));
     841    PRINT(0)("(%p) Name: %s; References: %d; Type: %s ", (*resource)->pointer, (*resource)->name.c_str(), (*resource)->count, ResourceManager::ResourceTypeToChar((*resource)->type));
    842842
    843843    PRINT(0)("gets deleted at ");
Note: See TracChangeset for help on using the changeset viewer.