Really catch sound exceptions, and avoid exiting on this kind of error :
OpenAL error (AL_INVALID_VALUE): constructor (alBufferData) Failed to buffer data.
This commit is contained in:
parent
6a154a59e1
commit
0dd1c66f95
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue