Changeset 9847 in orxonox.OLD for branches/new_class_id/src/lib/sound/resource_sound_buffer.cc
- Timestamp:
- Sep 27, 2006, 11:25:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/sound/resource_sound_buffer.cc
r9823 r9847 9 9 10 10 ResourceSoundBuffer::ResourceSoundBuffer(const std::string& soundName) 11 : SoundBuffer(), NewResource(&ResourceSoundBuffer::type)11 : SoundBuffer(), Resource(&ResourceSoundBuffer::type) 12 12 { 13 13 this->registerObject(this, ResourceSoundBuffer::_objectList); … … 23 23 { 24 24 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); 26 26 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())); 28 28 } 29 29 }
Note: See TracChangeset
for help on using the changeset viewer.