From: ehofman Date: Sat, 8 Jan 2005 11:47:19 +0000 (+0000) Subject: Frederic Bouvier: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d248bf0dfd36865369fb94eeec26ea8e3a6ab08;p=simgear.git Frederic Bouvier: It comes to me that the bulk of all problem reports, especially from Windows users, have it's cause in an obsolete sound driver. These messages should direct them to the right solution before complaining. --- diff --git a/simgear/sound/sample_openal.cxx b/simgear/sound/sample_openal.cxx index 471ba5e2..fa74a906 100644 --- a/simgear/sound/sample_openal.cxx +++ b/simgear/sound/sample_openal.cxx @@ -123,7 +123,7 @@ SGSoundSample::SGSoundSample( const char *path, const char *file, // Bind buffer with a source. alGenSources(1, &source); if (alGetError() != AL_NO_ERROR) { - throw sg_exception("Failed to gen source."); + throw sg_exception("Failed to gen source.\nPlease update your sound driver and try again."); } alSourcei( source, AL_BUFFER, buffer ); @@ -193,7 +193,7 @@ SGSoundSample::SGSoundSample( unsigned char *_data, int len, int _freq, // Bind buffer with a source. alGenSources(1, &source); if (alGetError() != AL_NO_ERROR) { - throw sg_exception("Failed to gen source."); + throw sg_exception("Failed to gen source.\nPlease update your sound driver and try again."); } alSourcei( source, AL_BUFFER, buffer );