]> git.mxchange.org Git - simgear.git/commitdiff
Print the name of the file generating an OpenAL error
authorfredb <fredb>
Fri, 12 Dec 2008 07:41:44 +0000 (07:41 +0000)
committerfredb <fredb>
Fri, 12 Dec 2008 07:41:44 +0000 (07:41 +0000)
simgear/sound/sample_openal.cxx

index 103387edc92f21515988d2ebaa91f73863f93605..52eaea184435b00a3b4e27a5803e3cfbc1ecb526 100644 (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.");
     }