Changeset 9804 in orxonox.OLD for branches/new_class_id/src/lib/sound/sound_buffer.h
- Timestamp:
- Sep 24, 2006, 1:15:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/sound/sound_buffer.h
r9803 r9804 20 20 public: 21 21 SoundBuffer(); 22 SoundBuffer(const SoundBuffer& buffer) { this->data = buffer.data; } 23 SoundBuffer(const SoundBufferData::Pointer& dataPointer) { this->data = dataPointer; }; 22 24 SoundBuffer(const std::string& fileName); 23 25 … … 32 34 inline ALuint getID() const { return this->data->getID(); } 33 35 36 /** @returns the DataPointer */ 37 const SoundBufferData::Pointer& dataPointer() const { return data; } 38 /** @param dataPointer the data to acquire @brief Buffer shall acquire dataPointers data */ 39 void acquireData(const SoundBufferData::Pointer& dataPointer) { data = dataPointer; }; 34 40 private: 35 41 SoundBufferData::Pointer data;
Note: See TracChangeset
for help on using the changeset viewer.