Changeset 9803 in orxonox.OLD for branches/new_class_id/src/lib/sound/sound_buffer_data.h
- Timestamp:
- Sep 24, 2006, 12:58:19 PM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/sound/sound_buffer_data.h
r9801 r9803 1 1 /*! 2 * @file sound_buffer .h3 * @brief Definition of the sound-buffer- class2 * @file sound_buffer_data.h 3 * @brief Definition of the sound-buffer-datacontainer-class 4 4 */ 5 5 6 #ifndef _SOUND_BUFFER_ H7 #define _SOUND_BUFFER_ H6 #ifndef _SOUND_BUFFER_DATA_H 7 #define _SOUND_BUFFER_DATA_H 8 8 9 9 #include "base_object.h" 10 10 #include "alincl.h" 11 #include "util/count_pointer.h" 11 12 12 13 // FORWARD DECLARATION … … 16 17 { 17 18 //! A class that represents a datastructure to play Sounds. 18 class SoundBuffer : public BaseObject19 class SoundBufferData : public BaseObject 19 20 { 20 ObjectListDeclaration(SoundBuffer );21 ObjectListDeclaration(SoundBufferData); 21 22 public: 22 SoundBuffer(const std::string& fileName); 23 virtual ~SoundBuffer(); 23 typedef CountPointer<SoundBufferData> Pointer; 24 24 25 public: 26 SoundBufferData(); 27 virtual ~SoundBufferData(); 28 29 bool load(const std::string& fileName); 25 30 bool loadWAV(const std::string& fileName); 26 31 bool loadOGG(const std::string& fileName); … … 39 44 }; 40 45 } 41 #endif /* _SOUND_BUFFER_ H */46 #endif /* _SOUND_BUFFER_DATA_H */
Note: See TracChangeset
for help on using the changeset viewer.