Changeset 7225 in orxonox.OLD for trunk/src/lib/sound
- Timestamp:
- Mar 18, 2006, 12:04:39 PM (19 years ago)
- Location:
- trunk/src/lib/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/sound_engine.cc
r7221 r7225 352 352 } 353 353 354 bool SoundEngine::checkError(const char*error, unsigned int line)354 bool SoundEngine::checkError(const std::string& error, unsigned int line) 355 355 { 356 356 ALenum errorCode; 357 357 if ((errorCode = alGetError()) != AL_NO_ERROR) 358 358 { 359 PRINTF(1)("Error %s (line:%d): '%s'\n", error , line, SoundEngine::getALErrorString(errorCode));359 PRINTF(1)("Error %s (line:%d): '%s'\n", error.c_str(), line, SoundEngine::getALErrorString(errorCode)); 360 360 return false; 361 361 } … … 364 364 } 365 365 366 bool SoundEngine::checkALCError(const char*error, unsigned int line)366 bool SoundEngine::checkALCError(const std::string& error, unsigned int line) 367 367 { 368 368 ALenum errorCode; 369 369 if ((errorCode = alcGetError(this->device)) != ALC_NO_ERROR) 370 370 { 371 PRINTF(1)("Error %s (line:%d): '%s'\n", error , line, SoundEngine::getALCErrorString(errorCode));371 PRINTF(1)("Error %s (line:%d): '%s'\n", error.c_str(), line, SoundEngine::getALCErrorString(errorCode)); 372 372 return false; 373 373 } -
trunk/src/lib/sound/sound_engine.h
r7221 r7225 59 59 60 60 // error handling: 61 static bool checkError(const char*error, unsigned int line);62 bool checkALCError(const char*error, unsigned int line);61 static bool checkError(const std::string& error, unsigned int line); 62 bool checkALCError(const std::string& error, unsigned int line); 63 63 static const char* getALErrorString(ALenum err); 64 64 static const char* getALCErrorString(ALenum err);
Note: See TracChangeset
for help on using the changeset viewer.