Changeset 9847 in orxonox.OLD for branches/new_class_id/src/lib/sound
- Timestamp:
- Sep 27, 2006, 11:25:43 PM (18 years ago)
- 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 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 } -
branches/new_class_id/src/lib/sound/resource_sound_buffer.h
r9846 r9847 13 13 namespace OrxSound 14 14 { 15 class ResourceSoundBuffer : public SoundBuffer, public Resources:: NewResource15 class ResourceSoundBuffer : public SoundBuffer, public Resources::Resource 16 16 { 17 17 ObjectListDeclaration(ResourceSoundBuffer);
Note: See TracChangeset
for help on using the changeset viewer.