Changeset 9823 in orxonox.OLD for branches/new_class_id/src/lib/sound
- Timestamp:
- Sep 25, 2006, 11:28:28 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
r9811 r9823 9 9 10 10 ResourceSoundBuffer::ResourceSoundBuffer(const std::string& soundName) 11 : SoundBuffer(), NewResource(&ResourceSoundBuffer::type)11 : SoundBuffer(), NewResource(&ResourceSoundBuffer::type) 12 12 { 13 13 this->registerObject(this, ResourceSoundBuffer::_objectList); … … 30 30 31 31 32 Resources:: TypeResourceSoundBuffer::type("SoundBuffer");32 Resources::tType<ResourceSoundBuffer> ResourceSoundBuffer::type("SoundBuffer"); 33 33 34 34 ResourceSoundBuffer::SoundBufferResourcePointer::SoundBufferResourcePointer(const std::string& loadString, const Resources::KeepLevel& keepLevel, const SoundBufferData::Pointer& data) 35 35 : Resources::StorePointer(loadString, keepLevel) , pointer(data) 36 {} 37 } 36 {}} -
branches/new_class_id/src/lib/sound/resource_sound_buffer.h
r9811 r9823 18 18 public: 19 19 ResourceSoundBuffer(const std::string& soundName); 20 static ResourceSoundBuffer createFromString(const std::string& loadString) { return ResourceSoundBuffer(loadString); }; 20 21 21 22 private: … … 30 31 31 32 private: 32 static Resources:: Typetype;33 static Resources::tType<ResourceSoundBuffer> type; 33 34 }; 34 35 }
Note: See TracChangeset
for help on using the changeset viewer.