Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6847 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 30, 2006, 2:45:53 AM (19 years ago)
Author:
bensch
Message:

trunk: should work again

Location:
trunk/src/lib/sound
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sound/sound_engine.cc

    r6846 r6847  
    293293
    294294  }
     295
    295296  // INITIALIZING THE DEVICE:
    296297  /*
     
    310311    alcMakeContextCurrent(this->context);
    311312  #else*/
     313  printf("!!!!!!!!!!!!!!!!!!%d\n", __LINE__);
    312314  this->device = alcOpenDevice(NULL);
     315  printf("!!!!!!!!!!!!!!!!!!%d\n", __LINE__);
    313316  SoundEngine::checkError("Error opening Device", __LINE__);
     317  printf("!!!!!!!!!!!!!!!!!!%d\n", __LINE__);
    314318  this->context = alcCreateContext(this->device, NULL);
     319  printf("!!!!!!!!!!!!!!!!!!%d\n", __LINE__);
    315320  SoundEngine::checkError("Error creating Context", __LINE__);
    316   alcMakeContextCurrent(this->context);
     321  //alcMakeContextCurrent(this->context);
     322  printf("!!!!!!!!!!!!!!!!!!%d\n", __LINE__);
    317323  this->checkError("Making Context Current", __LINE__);
    318324  // #endif
     
    400406}
    401407
    402 /*
    403 void SoundEngine::PrintALCErrorString(ALenum err)
     408
     409const char* SoundEngine::getALCErrorString(ALenum err)
    404410{
    405411  switch(err)
    406412    {
    407413    case ALC_NO_ERROR:
    408       PRINTF(4)("AL_NO_ERROR\n");
    409       break;
    410 
     414      return ("AL_NO_ERROR\n");
    411415    case ALC_INVALID_DEVICE:
    412       PRINTF(2)("ALC_INVALID_DEVICE\n");
    413       break;
    414 
     416      return ("ALC_INVALID_DEVICE\n");
    415417    case ALC_INVALID_CONTEXT:
    416       PRINTF(2)("ALC_INVALID_CONTEXT\n");
    417       break;
    418 
     418      return("ALC_INVALID_CONTEXT\n");
    419419    case ALC_INVALID_ENUM:
    420       PRINTF(2)("ALC_INVALID_ENUM\n");
    421       break;
    422 
     420      return("ALC_INVALID_ENUM\n");
    423421    case ALC_INVALID_VALUE:
    424       PRINTF(2)("ALC_INVALID_VALUE\n");
    425       break;
    426 
     422      return ("ALC_INVALID_VALUE\n");
    427423    case ALC_OUT_OF_MEMORY:
    428       PRINTF(2)("ALC_OUT_OF_MEMORY\n");
    429       break;
     424      return("ALC_OUT_OF_MEMORY\n");
    430425    };
    431426}
    432 */
     427
  • trunk/src/lib/sound/sound_engine.h

    r6840 r6847  
    6060  // error handling:
    6161    static bool checkError(const char* error, unsigned int line);
     62    static bool checkALCError(const char* error, unsigned int line);
    6263    static const char* getALErrorString(ALenum err);
     64    static const char* getALCErrorString(ALenum err);
    6365
    6466  private:
Note: See TracChangeset for help on using the changeset viewer.