Changeset 4506 in orxonox.OLD for orxonox/trunk/src/lib/sound/sound_engine.h
- Timestamp:
- Jun 4, 2005, 12:49:24 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/sound/sound_engine.h
r4504 r4506 11 11 12 12 13 #define SOUND_DOPPLER_FACTOR 0.001 //!< A factor for the audible doppler effect14 #define SOUND_DOPPLER_VELOCITY 5000000//!< A factor for the TravelSpeed of sound13 #define SOUND_DOPPLER_FACTOR 0.001 //!< A factor for the audible doppler effect 14 #define SOUND_DOPPLER_VELOCITY 5000000 //!< A factor for the TravelSpeed of sound 15 15 16 16 // FORWARD DEFINITION … … 26 26 ~SoundBuffer(void); 27 27 28 /** \returns the ID of the buffer */28 /** \returns the ID of the buffer used in this SoundBuffer */ 29 29 inline ALuint getID(void) { return this->bufferID; } 30 30 31 31 private: 32 ALuint bufferID;//!< The address of the Buffer.32 ALuint bufferID; //!< The address of the Buffer. 33 33 34 ALsizei size; //!< The size of the Buffer.35 ALboolean loop;//!< loop information.34 ALsizei size; //!< The size of the Buffer. 35 ALboolean loop; //!< loop information. 36 36 }; 37 37 … … 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 */ … … 60 60 61 61 private: 62 ALuint sourceID; //!< The ID of the Source63 SoundBuffer* buffer;//!< The buffer to play in this source.64 PNode* sourceNode; //!< The SourceNode represente the position/velocity... of this source.62 ALuint sourceID; //!< The ID of the Source 63 SoundBuffer* buffer; //!< The buffer to play in this source. 64 PNode* sourceNode; //!< The SourceNode represente the position/velocity... of this source. 65 65 }; 66 66 … … 99 99 private: 100 100 SoundEngine(void); 101 static SoundEngine* singletonRef;101 static SoundEngine* singletonRef; //!< Reference to this class 102 102 103 103 104 PNode* listener; //!< The listener of the Scene105 tList<SoundBuffer>* bufferList;//!< A list of buffers106 tList<SoundSource>* sourceList;//!< A list for all the sources in the scene.104 PNode* listener; //!< The listener of the Scene 105 tList<SoundBuffer>* bufferList; //!< A list of buffers 106 tList<SoundSource>* sourceList; //!< A list for all the sources in the scene. 107 107 108 108 };
Note: See TracChangeset
for help on using the changeset viewer.