OSDN Git Service

Louder Speech volume, less tracing.
[radegast/radegast.git] / Radegast / Core / Media / BufferSound.cs
index 5a6c025..f84bc4c 100644 (file)
@@ -28,6 +28,8 @@
 //\r
 // $Id: Sound.cs 502 2010-03-14 23:13:46Z latifer $\r
 //\r
+// Uncomment this to get lots more logging\r
+//#define TRACE_SOUND\r
 using System;\r
 using System.Runtime.InteropServices;\r
 using System.Collections.Generic;\r
@@ -257,13 +259,14 @@ namespace Radegast.Media
 \r
                     // Allocate a channel and set initial volume.  Initially paused.\r
                     FMODExec(system.playSound(CHANNELINDEX.FREE, sound, true, ref channel));\r
+#if TRACE_SOUND\r
                     Logger.Log(\r
                         String.Format("Channel {0} for {1} assigned to {2}",\r
                              channel.getRaw().ToString("X"),\r
                              sound.getRaw().ToString("X"),\r
                              Id),\r
                         Helpers.LogLevel.Debug);\r
-\r
+#endif\r
                     lock (allChannels)\r
                         allChannels[channel.getRaw()] = this;\r
 \r
@@ -336,13 +339,13 @@ namespace Radegast.Media
                     sound.release();\r
                     sound = null;\r
                 }\r
-\r
+#if TRACE_SOUND\r
                 Logger.Log(String.Format("Removing channel {0} sound {1} ID {2}",\r
                     chanStr,\r
                     soundStr,\r
                     Id.ToString()),\r
                     Helpers.LogLevel.Debug);\r
-\r
+#endif\r
                 lock (allBuffers)\r
                     allBuffers.Remove(ContainerId);\r
 \r