OSDN Git Service

Bail out if sound system fails to initialize
authorLatif Khalifa <latifer@streamgrid.net>
Mon, 3 Dec 2012 00:29:09 +0000 (01:29 +0100)
committerLatif Khalifa <latifer@streamgrid.net>
Mon, 3 Dec 2012 00:29:09 +0000 (01:29 +0100)
Radegast/Core/Media/MediaManager.cs

index 7fd2c9c..e3eeb58 100644 (file)
@@ -1,4 +1,4 @@
-// 
+// 
 // Radegast Metaverse Client
 // Copyright (c) 2009-2012, Radegast Development Team
 // All rights reserved.
@@ -250,6 +250,10 @@ namespace Radegast.Media
                         (IntPtr)null)
                     );
                 }
+                else if (result != FMOD.RESULT.OK)
+                {
+                    throw(new Exception(result.ToString()));
+                }
 
                 // Set real-world effect scales.
                 FMODExec(system.set3DSettings(