Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7225 in orxonox.OLD for trunk/src/lib/sound


Ignore:
Timestamp:
Mar 18, 2006, 12:04:39 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more std::string

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

Legend:

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

    r7221 r7225  
    352352}
    353353
    354 bool SoundEngine::checkError(const char* error, unsigned int line)
     354bool SoundEngine::checkError(const std::string& error, unsigned int line)
    355355{
    356356  ALenum errorCode;
    357357  if ((errorCode = alGetError()) != AL_NO_ERROR)
    358358  {
    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));
    360360    return false;
    361361  }
     
    364364}
    365365
    366 bool SoundEngine::checkALCError(const char* error, unsigned int line)
     366bool SoundEngine::checkALCError(const std::string& error, unsigned int line)
    367367{
    368368  ALenum errorCode;
    369369  if ((errorCode = alcGetError(this->device)) != ALC_NO_ERROR)
    370370  {
    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));
    372372    return false;
    373373  }
  • trunk/src/lib/sound/sound_engine.h

    r7221 r7225  
    5959
    6060  // 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);
    6363    static const char* getALErrorString(ALenum err);
    6464    static const char* getALCErrorString(ALenum err);
Note: See TracChangeset for help on using the changeset viewer.