]> git.mxchange.org Git - flightgear.git/commitdiff
Really catch sound exceptions, and avoid exiting on this kind of error :
authorfredb <fredb>
Fri, 12 Dec 2008 07:35:39 +0000 (07:35 +0000)
committerfredb <fredb>
Fri, 12 Dec 2008 07:35:39 +0000 (07:35 +0000)
OpenAL error (AL_INVALID_VALUE): constructor (alBufferData)
Failed to buffer data.

src/Sound/fg_fx.cxx

index 09a367d4229f8aec8fa6a55fa1b086700fe18f86..afe7bc88af1740a14f48ea25cd560b4035f9336f 100644 (file)
@@ -103,7 +103,7 @@ FGFX::init()
                             globals->get_soundmgr(), globals->get_fg_root());
   
                 _sound.push_back(sound);
-            } catch ( sg_io_exception &e ) {
+            } catch ( sg_exception &e ) {
                 SG_LOG(SG_GENERAL, SG_ALERT, e.getFormattedMessage());
                 delete sound;
             }