]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/sample_openal.cxx
Add a function to calculate the normalmap from a regular texture.
[simgear.git] / simgear / sound / sample_openal.cxx
index 471ba5e25ce57949394d98cfd29e275296b921d1..fa74a9063727652191ba8e79b1967ce4880474e5 100644 (file)
@@ -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 );