Changeset 9806 in orxonox.OLD for branches/new_class_id/src/lib/sound
- Timestamp:
- Sep 24, 2006, 10:30:13 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/sound
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/sound/ogg_player.h
r9762 r9806 100 100 101 101 102 std::string _title; 103 std::string _artist; 104 std::string _album; 105 std::string _vendor; 102 std::string _title; //!< Song Title. 103 std::string _artist; //!< Artist Name of the current song. 104 std::string _album; //!< Album Name of the current song. 105 std::string _vendor; //!< Vendor Name of the current song. 106 106 }; 107 107 -
branches/new_class_id/src/lib/sound/sound_buffer.cc
r9805 r9806 18 18 #include "sound_buffer.h" 19 19 20 20 21 namespace OrxSound 21 22 { 23 ObjectListDefinition(SoundBuffer); 22 24 ////////////////// 23 25 /* SOUND-BUFFER */ … … 26 28 : data(new SoundBufferData) 27 29 { 30 this->registerObject(this, SoundBuffer::_objectList); 28 31 } 29 32 /** … … 34 37 : data(new SoundBufferData) 35 38 { 39 this->registerObject(this, SoundBuffer::_objectList); 36 40 this->load(fileName); 37 41 } … … 39 43 SoundBuffer::SoundBuffer(const SoundBuffer& buffer) 40 44 : data(buffer.data) 41 { } 45 { 46 this->registerObject(this, SoundBuffer::_objectList); 47 } 42 48 43 49 SoundBuffer::SoundBuffer(const SoundBufferData::Pointer& dataPointer) 44 50 : data(dataPointer) 45 { }; 51 { 52 this->registerObject(this, SoundBuffer::_objectList); 53 }; 54 55 SoundBuffer::~SoundBuffer() 56 { 57 printf("Deleting Object of type SoundBuffer\n"); 58 } 59 46 60 } -
branches/new_class_id/src/lib/sound/sound_buffer.h
r9805 r9806 7 7 #define _SOUND_BUFFER_H 8 8 9 #include "base_object.h" 9 10 #include "sound_buffer_data.h" 10 11 … … 12 13 { 13 14 //! A class that represents a datastructure to play Sounds. 14 class SoundBuffer 15 class SoundBuffer : virtual public BaseObject 15 16 { 17 ObjectListDeclaration(SoundBuffer); 16 18 public: 17 19 SoundBuffer(); … … 19 21 SoundBuffer(const SoundBufferData::Pointer& dataPointer); 20 22 SoundBuffer(const std::string& fileName); 23 virtual ~SoundBuffer(); 21 24 22 25 bool operator==(const SoundBuffer& buffer) const {return this->data == buffer.data; };
Note: See TracChangeset
for help on using the changeset viewer.