From: fredb Date: Fri, 12 Dec 2008 07:35:39 +0000 (+0000) Subject: Really catch sound exceptions, and avoid exiting on this kind of error : X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0dd1c66f95b743a6e8658f2607a5b6452f36a644;p=flightgear.git Really catch sound exceptions, and avoid exiting on this kind of error : OpenAL error (AL_INVALID_VALUE): constructor (alBufferData) Failed to buffer data. --- diff --git a/src/Sound/fg_fx.cxx b/src/Sound/fg_fx.cxx index 09a367d42..afe7bc88a 100644 --- a/src/Sound/fg_fx.cxx +++ b/src/Sound/fg_fx.cxx @@ -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; }