1 Check ALC errors instead of AL errors.
2 =====================================================================
3 --- src/openalsoundsystem.cpp.bak 2008-05-04 16:41:32.000000000 -0400
4 +++ src/openalsoundsystem.cpp 2008-05-04 16:20:52.000000000 -0400
7 int attributes[] = { 0 };
8 mContext = alcCreateContext(mDevice, attributes);
9 - if ( (err = alGetError()) != AL_NO_ERROR) {
10 + if ( (err = alcGetError(mDevice)) != ALC_NO_ERROR) {
11 LogManager::getSingleton().logMessage("OpanAL: error creating context: " + lastALError(err) );
14 // check_alc_error("Couldn't create audio context: ");
15 alcMakeContextCurrent(mContext);
16 // check_alc_error("Couldn't select audio context: ");
17 - if ( (err = alGetError()) != AL_NO_ERROR) {
18 + if ( (err = alcGetError(mDevice)) != ALC_NO_ERROR) {
19 LogManager::getSingleton().logMessage("OpanAL: error making context current: " + lastALError(err) );