Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9847 in orxonox.OLD for branches/new_class_id/src/lib/sound


Ignore:
Timestamp:
Sep 27, 2006, 11:25:43 PM (18 years ago)
Author:
bensch
Message:

renamed NewResource to Resource

Location:
branches/new_class_id/src/lib/sound
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/sound/resource_sound_buffer.cc

    r9823 r9847  
    99
    1010  ResourceSoundBuffer::ResourceSoundBuffer(const std::string& soundName)
    11       : SoundBuffer(), NewResource(&ResourceSoundBuffer::type)
     11      : SoundBuffer(), Resource(&ResourceSoundBuffer::type)
    1212  {
    1313    this->registerObject(this, ResourceSoundBuffer::_objectList);
     
    2323    {
    2424      PRINTF(5)("SOUND NOT FOUND: %s\n", soundName.c_str());
    25       std::string fileName = this->NewResource::locateFile(soundName);
     25      std::string fileName = this->Resource::locateFile(soundName);
    2626      this->SoundBuffer::load(fileName);
    27       this->NewResource::addResource(new ResourceSoundBuffer::SoundBufferResourcePointer(soundName, Resources::KeepLevel(0), this->SoundBuffer::dataPointer()));
     27      this->Resource::addResource(new ResourceSoundBuffer::SoundBufferResourcePointer(soundName, Resources::KeepLevel(0), this->SoundBuffer::dataPointer()));
    2828    }
    2929  }
  • branches/new_class_id/src/lib/sound/resource_sound_buffer.h

    r9846 r9847  
    1313namespace OrxSound
    1414{
    15   class ResourceSoundBuffer : public SoundBuffer, public Resources::NewResource
     15  class ResourceSoundBuffer : public SoundBuffer, public Resources::Resource
    1616  {
    1717    ObjectListDeclaration(ResourceSoundBuffer);
Note: See TracChangeset for help on using the changeset viewer.