Changeset 5819 in orxonox.OLD for trunk/src/lib/sound
- Timestamp:
- Nov 29, 2005, 11:07:43 AM (19 years ago)
- Location:
- trunk/src/lib/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/sound_engine.cc
r5779 r5819 21 21 #include "sound_engine.h" 22 22 23 //#include <AL/alc.h> // maybe later24 23 #include "class_list.h" 25 24 … … 208 207 void SoundEngine::flushUnusedBuffers() 209 208 { 209 /// FIXME 210 210 /* if(this->sourceList && this->bufferList) 211 211 { … … 280 280 } 281 281 282 283 alutInit(NULL, 0); 282 // INITIALIZING THE DEVICE: 283 ALCubyte deviceName[] = 284 #ifdef __WIN32__ 285 "native"; 286 #else 287 "'( ( devices '( native arts null ) ) )"; 288 #endif 289 // 290 this->device = alcOpenDevice(deviceName); 291 292 this->context = alcCreateContext(this->device, NULL); 293 294 alcMakeContextCurrent(this->context); 295 296 284 297 if ((result = alGetError()) != AL_NO_ERROR) 285 298 SoundEngine::PrintALErrorString(result); -
trunk/src/lib/sound/sound_engine.h
r5779 r5819 68 68 static SoundEngine* singletonRef; //!< Reference to this class 69 69 70 ALCdevice* device; //!< the used audio-device. 71 ALCcontext* context; //!< the context, currently in use. 72 70 73 float musicVolume; //!< the maximum volume of the music in % (0f,1f] 71 74 float effectsVolume; //!< the maximum volume of sound-effects in % (0f,1f] 72 75 PNode* listener; //!< The listener of the Scene 76 73 77 std::list<BaseObject*>* bufferList; //!< A list of buffers 74 78 std::list<BaseObject*>* sourceList; //!< A list for all the sources in the scene. 79 75 80 76 81 };
Note: See TracChangeset
for help on using the changeset viewer.