- Timestamp:
- Jan 30, 2006, 2:45:53 AM (19 years ago)
- Location:
- trunk/src/lib/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/sound_engine.cc
r6846 r6847 293 293 294 294 } 295 295 296 // INITIALIZING THE DEVICE: 296 297 /* … … 310 311 alcMakeContextCurrent(this->context); 311 312 #else*/ 313 printf("!!!!!!!!!!!!!!!!!!%d\n", __LINE__); 312 314 this->device = alcOpenDevice(NULL); 315 printf("!!!!!!!!!!!!!!!!!!%d\n", __LINE__); 313 316 SoundEngine::checkError("Error opening Device", __LINE__); 317 printf("!!!!!!!!!!!!!!!!!!%d\n", __LINE__); 314 318 this->context = alcCreateContext(this->device, NULL); 319 printf("!!!!!!!!!!!!!!!!!!%d\n", __LINE__); 315 320 SoundEngine::checkError("Error creating Context", __LINE__); 316 alcMakeContextCurrent(this->context); 321 //alcMakeContextCurrent(this->context); 322 printf("!!!!!!!!!!!!!!!!!!%d\n", __LINE__); 317 323 this->checkError("Making Context Current", __LINE__); 318 324 // #endif … … 400 406 } 401 407 402 /* 403 void SoundEngine::PrintALCErrorString(ALenum err)408 409 const char* SoundEngine::getALCErrorString(ALenum err) 404 410 { 405 411 switch(err) 406 412 { 407 413 case ALC_NO_ERROR: 408 PRINTF(4)("AL_NO_ERROR\n"); 409 break; 410 414 return ("AL_NO_ERROR\n"); 411 415 case ALC_INVALID_DEVICE: 412 PRINTF(2)("ALC_INVALID_DEVICE\n"); 413 break; 414 416 return ("ALC_INVALID_DEVICE\n"); 415 417 case ALC_INVALID_CONTEXT: 416 PRINTF(2)("ALC_INVALID_CONTEXT\n"); 417 break; 418 418 return("ALC_INVALID_CONTEXT\n"); 419 419 case ALC_INVALID_ENUM: 420 PRINTF(2)("ALC_INVALID_ENUM\n"); 421 break; 422 420 return("ALC_INVALID_ENUM\n"); 423 421 case ALC_INVALID_VALUE: 424 PRINTF(2)("ALC_INVALID_VALUE\n"); 425 break; 426 422 return ("ALC_INVALID_VALUE\n"); 427 423 case ALC_OUT_OF_MEMORY: 428 PRINTF(2)("ALC_OUT_OF_MEMORY\n"); 429 break; 424 return("ALC_OUT_OF_MEMORY\n"); 430 425 }; 431 426 } 432 */ 427 -
trunk/src/lib/sound/sound_engine.h
r6840 r6847 60 60 // error handling: 61 61 static bool checkError(const char* error, unsigned int line); 62 static bool checkALCError(const char* error, unsigned int line); 62 63 static const char* getALErrorString(ALenum err); 64 static const char* getALCErrorString(ALenum err); 63 65 64 66 private:
Note: See TracChangeset
for help on using the changeset viewer.