OSDN Git Service

Initial control panel for sound volume and disable
[radegast/radegast.git] / Radegast / Core / Media / BufferSound.cs
index 00e55a5..11d1e43 100644 (file)
@@ -212,7 +212,7 @@ namespace Radegast.Media
 \r
                     // Allocate a channel and set initial volume.  Initially paused.\r
                     FMODExec(system.playSound(CHANNELINDEX.FREE, sound, true, ref channel));\r
-                    FMODExec(channel.setVolume(volume));\r
+                    FMODExec(channel.setVolume(volume * m_objectVolume ));\r
 \r
                     // Take note of when the sound is finished playing.\r
                     FMODExec(channel.setCallback(endCallback));\r