OSDN Git Service

Un-disable volume control for inworld sounds. It seems to be working now
[radegast/radegast.git] / Radegast / Core / Media / BufferSound.cs
index f84bc4c..a1e1501 100644 (file)
@@ -150,7 +150,10 @@ namespace Radegast.Media
         /// </summary>\r
         public static void AdjustVolumes()\r
         {\r
-            foreach (BufferSound s in allBuffers.Values)\r
+            // Make a list from the dictionary so we do not get a deadlock\r
+            List<BufferSound> list = new List<BufferSound>(allBuffers.Values);\r
+\r
+            foreach (BufferSound s in list)\r
             {\r
                 s.AdjustVolume();\r
             }\r
@@ -161,8 +164,7 @@ namespace Radegast.Media
         /// </summary>\r
         private void AdjustVolume()\r
         {\r
-            //TODO This is disabled until we find why FMOD objects to the handle\r
-            //            Volume = volumeSetting * AllObjectVolume;\r
+            Volume = volumeSetting * AllObjectVolume;\r
         }\r
 \r
         // A simpler constructor used by PreFetchSound.\r