Changeset 5386 in orxonox.OLD for trunk/src/lib/sound/sound_buffer.h
- Timestamp:
- Oct 15, 2005, 11:44:14 PM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/sound_buffer.h
r5382 r5386 1 1 /*! 2 * @file proto_class.h3 * @brief Definition of ...2 * @file sound_buffer.h 3 * @brief Definition of the sound-buffer-class 4 4 */ 5 5 6 #ifndef _ PROTO_CLASS_H7 #define _ PROTO_CLASS_H6 #ifndef _SOUND_BUFFER_H 7 #define _SOUND_BUFFER_H 8 8 9 9 #include "base_object.h" 10 #include "alincl.h" 10 11 11 12 // FORWARD DECLARATION 12 13 14 //! A class that represents a datastructure to play Sounds. 15 class SoundBuffer : public BaseObject 16 { 17 public: 18 SoundBuffer(const char* fileName); 19 ~SoundBuffer(); 13 20 21 /** @returns the ID of the buffer used in this SoundBuffer */ 22 inline ALuint getID() const { return this->bufferID; } 14 23 15 //! A class for ... 16 class ProtoClass : public BaseObject { 24 private: 25 ALuint bufferID; //!< The address of the Buffer. 17 26 18 public: 19 ProtoClass(); 20 virtual ~ProtoClass(); 21 22 23 private: 24 27 ALsizei size; //!< The size of the Buffer. 28 ALboolean loop; //!< loop information. 25 29 }; 26 30 27 #endif /* _ PROTO_CLASS_H */31 #endif /* _SOUND_BUFFER_H */
Note: See TracChangeset
for help on using the changeset viewer.