OSDN Git Service

Fixed crash when --no-sound was used and attempt to play incoming IM sound happened
[radegast/radegast.git] / Radegast / Core / Media / BufferSound.cs
index 62d53fa..50f5b27 100644 (file)
@@ -72,6 +72,8 @@ namespace Radegast.Media
 \r
         private void InitBuffer(UUID objectId, UUID soundId, bool loop, bool global, Vector3 worldpos, float vol)\r
         {\r
+            if (manager == null || !manager.SoundSystemAvailable) return;\r
+\r
             // Do not let this get garbage-collected.\r
             lock (allBuffers)\r
                 allBuffers[objectId] = this;\r