From 5d248bf0dfd36865369fb94eeec26ea8e3a6ab08 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sat, 8 Jan 2005 11:47:19 +0000 Subject: [PATCH] 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. --- simgear/sound/sample_openal.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.5