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:
auria
2008-02-28 00:26:38 +00:00
parent 864b6abd4e
commit 1b13ae6346

View File

@@ -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;
}