Changeset 5924 in orxonox.OLD for branches/avi_play/src/lib/sound/sound_engine.h
- Timestamp:
- Dec 4, 2005, 11:37:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/sound/sound_engine.h
r5819 r5924 14 14 15 15 #include <list> 16 #include <stack> 16 17 17 18 #define SOUND_DOPPLER_FACTOR 0.001 //!< A factor for the audible doppler effect … … 21 22 class PNode; 22 23 class IniParser; 24 23 25 24 26 //! A class that handles audio via the openAudioLibrary … … 54 56 void flushAllBuffers(); 55 57 void flushAllSources(); 58 59 bool allocateSources(unsigned int count); 56 60 bool initAudio(); 57 61 … … 66 70 67 71 private: 68 static SoundEngine* singletonRef; //!< Reference to this class72 static SoundEngine* singletonRef; //!< Reference to this class 69 73 70 ALCdevice* device; //!< the used audio-device.71 ALCcontext* context; //!< the context, currently in use.74 ALCdevice* device; //!< the used audio-device. 75 ALCcontext* context; //!< the context, currently in use. 72 76 73 float musicVolume; //!< the maximum volume of the music in % (0f,1f]74 float effectsVolume; //!< the maximum volume of sound-effects in % (0f,1f]75 PNode* listener; //!< The listener of the Scene77 float musicVolume; //!< the maximum volume of the music in % (0f,1f] 78 float effectsVolume; //!< the maximum volume of sound-effects in % (0f,1f] 79 PNode* listener; //!< The listener of the Scene 76 80 77 std::list<BaseObject*>* bufferList; //!< A list of buffers78 std::list<BaseObject*>* sourceList; //!< A list for all the sources in the scene.81 const std::list<BaseObject*>* bufferList; //!< A list of buffers 82 const std::list<BaseObject*>* sourceList; //!< A list for all the sources in the scene. 79 83 80 84 unsigned int maxSourceCount; //!< How many Sources is the Maximum 85 std::stack<ALuint> ALSources; //!< A list of real openAL-Sources, the engine allocates, and stores for reuse. 81 86 }; 82 87
Note: See TracChangeset
for help on using the changeset viewer.