Changeset 9805 in orxonox.OLD for branches/new_class_id/src/lib/sound/sound_buffer.h
- Timestamp:
- Sep 24, 2006, 3:21:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/sound/sound_buffer.h
r9804 r9805 7 7 #define _SOUND_BUFFER_H 8 8 9 #include "base_object.h"10 #include "alincl.h"11 12 9 #include "sound_buffer_data.h" 13 10 … … 15 12 { 16 13 //! A class that represents a datastructure to play Sounds. 17 class SoundBuffer : public BaseObject14 class SoundBuffer 18 15 { 19 ObjectListDeclaration(SoundBuffer);20 16 public: 21 17 SoundBuffer(); 22 SoundBuffer(const SoundBuffer& buffer) { this->data = buffer.data; }23 SoundBuffer(const SoundBufferData::Pointer& dataPointer) { this->data = dataPointer; };18 SoundBuffer(const SoundBuffer& buffer); 19 SoundBuffer(const SoundBufferData::Pointer& dataPointer); 24 20 SoundBuffer(const std::string& fileName); 21 22 bool operator==(const SoundBuffer& buffer) const {return this->data == buffer.data; }; 25 23 26 24 /** @see SoundBufferData::load */ … … 33 31 /** @returns the ID of the buffer used in this SoundBuffer */ 34 32 inline ALuint getID() const { return this->data->getID(); } 33 inline bool loaded() const { return this->data->loaded(); } 35 34 36 35 /** @returns the DataPointer */ … … 38 37 /** @param dataPointer the data to acquire @brief Buffer shall acquire dataPointers data */ 39 38 void acquireData(const SoundBufferData::Pointer& dataPointer) { data = dataPointer; }; 39 40 40 private: 41 SoundBufferData::Pointer data; 41 SoundBufferData::Pointer data; //!< Pointer to the Stored Data 42 42 }; 43 43 }
Note: See TracChangeset
for help on using the changeset viewer.