Changeset 6237 for code/branches/presentation2/src/orxonox
- Timestamp:
- Dec 3, 2009, 10:23:32 PM (15 years ago)
- Location:
- code/branches/presentation2/src/orxonox/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/SoundManager.cc
r6232 r6237 55 55 RegisterRootObject(SoundManager); 56 56 57 /* 57 58 if (!alutInitWithoutContext(NULL, NULL)) 59 */ 60 if (!alutInit(NULL, NULL)) 58 61 ThrowException(InitialisationFailed, "Sound: OpenAL ALUT error: " << alutGetErrorString(alutGetError())); 59 62 Loki::ScopeGuard alutExitGuard = Loki::MakeGuard(&alutExit); 60 63 64 // Note: Everything related to ALC has been commented because there seem to be 65 // very serious problems with the unloading sequence (complete freeze on Linux, 66 // sometimes really everything gone, including response to any signals). 67 // For the moment ALUT can do everything we need so far. 68 /* 61 69 COUT(3) << "Sound: OpenAL: Opening sound device..." << std::endl; 62 70 this->device_ = alcOpenDevice(NULL); … … 87 95 else 88 96 COUT(4) << "Sound: OpenAL ALUT supported MIME types: " << str << std::endl; 97 */ 89 98 90 99 GameMode::setPlaysSound(true); 91 100 // Disarm guards 92 101 alutExitGuard.Dismiss(); 102 /* 93 103 closeDeviceGuard.Dismiss(); 94 104 desroyContextGuard.Dismiss(); 105 */ 95 106 96 107 this->setVolumeInternal(1.0, SoundType::none); … … 108 119 { 109 120 GameMode::setPlaysSound(false); 121 /* 110 122 alcDestroyContext(this->context_); 111 123 alcCloseDevice(this->device_); 124 */ 112 125 alutExit(); 113 126 } -
code/branches/presentation2/src/orxonox/sound/SoundManager.h
r6203 r6237 111 111 float getVolumeInternal(SoundType::Value type); 112 112 113 /* 113 114 ALCdevice* device_; 114 115 ALCcontext* context_; 116 */ 115 117 116 118 typedef std::list<std::pair<AmbientSound*, bool> > AmbientList;
Note: See TracChangeset
for help on using the changeset viewer.