Improved ALUT error checking when a sound fails to load
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -73,7 +73,8 @@ bool SFXImpl::load(const char* filename)
|
||||
m_soundBuffer = alutCreateBufferFromFile( path.c_str() );
|
||||
if( m_soundBuffer == AL_NONE )
|
||||
{
|
||||
fprintf(stderr, "Error 1 loading SFX: %s failed\n", path.c_str());
|
||||
const int error = alutGetError();
|
||||
fprintf(stderr, "Error 1 loading SFX: %s failed because %s \n", path.c_str(), alutGetErrorString(error));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user