Changeset 4597 in orxonox.OLD for orxonox/trunk/src/lib/sound/sound_engine.h
- Timestamp:
- Jun 11, 2005, 12:55:48 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/sound/sound_engine.h
r4519 r4597 1 /*! 1 /*! 2 2 \file sound_engine.h 3 \brief Definition of the SoundEngine singleton Class 3 \brief Definition of the SoundEngine singleton Class 4 4 */ 5 5 … … 20 20 21 21 //! A class that represents a datastructure to play Sounds. 22 class SoundBuffer 22 class SoundBuffer : public BaseObject 23 23 { 24 24 public: … … 37 37 38 38 //! A class that represents a SoundSource 39 class SoundSource 39 class SoundSource : virtual public BaseObject 40 40 { 41 41 public: 42 42 SoundSource(SoundBuffer* buffer, PNode* sourceNode = NULL); 43 43 ~SoundSource(void); 44 44 45 45 // user interaction 46 46 void play(); … … 48 48 void pause(); 49 49 void rewind(); 50 50 51 51 // development functions 52 52 /** \returns The ID of this Source */ 53 53 inline ALuint getID(void) const { return this->sourceID; } 54 54 /** \returns the SoundBuffer of this Source */ 55 inline SoundBuffer* getBuffer(void) const { return this->buffer; } 55 inline SoundBuffer* getBuffer(void) const { return this->buffer; } 56 56 /** \returns the SourceNode of this Source */ 57 57 inline PNode* getNode(void) const { return this->sourceNode;}
Note: See TracChangeset
for help on using the changeset viewer.