Changeset 2998 for code/branches/sound/src/orxonox/sound/SoundManager.cc
- Timestamp:
- May 20, 2009, 8:31:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound/src/orxonox/sound/SoundManager.cc
r2984 r2998 44 44 SoundManager::SoundManager() 45 45 { 46 this->soundavailable_ = true; 46 47 if(!alutInitWithoutContext(NULL,NULL)) 47 48 { 48 49 COUT(2) << "Sound: OpenAL ALUT: " << alutGetErrorString(alutGetError()) << std::endl; 50 this->soundavailable_ = false; 49 51 } 50 52 else … … 61 63 { 62 64 COUT(2) << "Sound: OpenAL: Could not open sound device" << std::endl; 65 this->soundavailable_ = false; 63 66 } 64 67 else … … 69 72 { 70 73 COUT(2) << "Sound: OpenAL: Could not create sound context" << std::endl; 74 this->soundavailable_ = false; 71 75 } 72 76 else … … 146 150 (*i)->update(); 147 151 } 152 153 /** 154 * Check if sound is available 155 */ 156 bool SoundManager::isSoundAvailable() 157 { 158 return this->soundavailable_; 159 } 148 160 }
Note: See TracChangeset
for help on using the changeset viewer.