Print the name of the file generating an OpenAL error

This commit is contained in:
fredb
2008-12-12 07:41:44 +00:00
parent e0a07b7a92
commit 0e7bdc208b

View File

@@ -145,6 +145,7 @@ SGSoundSample::SGSoundSample( const char *path, const char *file, bool _no_Doppl
alBufferData( buffer, format, data, size, freq );
if ( print_openal_error("constructor (alBufferData)") ) {
SG_LOG( SG_GENERAL, SG_ALERT, "Trying to use file " << file );
throw sg_exception("Failed to buffer data.");
}