[ros-diffs] [cwittich] 22468: reverted GreatLords audio "fix" - it did not changed anything except the code was about 4 times longer

cwittich at svn.reactos.org cwittich at svn.reactos.org
Wed Jun 21 18:18:45 CEST 2006


Author: cwittich
Date: Wed Jun 21 20:18:44 2006
New Revision: 22468

URL: http://svn.reactos.ru/svn/reactos?rev=22468&view=rev
Log:
reverted GreatLords audio "fix" - it did not changed anything except the code was about 4 times longer

Modified:
    trunk/tools/Qemu GUI/QEmu.cs

Modified: trunk/tools/Qemu GUI/QEmu.cs
URL: http://svn.reactos.ru/svn/reactos/trunk/tools/Qemu%20GUI/QEmu.cs?rev=22468&r1=22467&r2=22468&view=diff
==============================================================================
--- trunk/tools/Qemu GUI/QEmu.cs (original)
+++ trunk/tools/Qemu GUI/QEmu.cs Wed Jun 21 20:18:44 2006
@@ -344,53 +344,26 @@
         {
             bool audio_on = (this.ES1370 | this.OPL2 | this.Soundblaster | this.Speaker);
 
-            bool audio_check = false;
             if (!audio_on)
                 return "";
 
             string buffer = "-soundhw ";
 
             if (this.Speaker)
-            {
-                buffer += "pcspk";
-                audio_check = true;
-            }
+                buffer += "pcspk,";
 
             if (this.Soundblaster)
-            {
-                if (audio_check == true)
-                    buffer += ",";
-                else
-                    audio_check = true;
- 
                 buffer += "sb16,";
-            }
 
             if (this.OPL2)
-            {
-                if (audio_check == true)
-                    buffer += ",";
-                else
-                    audio_check = true;
-
-                buffer += "adlib";
-            }
+                buffer += "adlib,";
 
             if (this.ES1370)
-            {
-                if (audio_check == true)
-                    buffer += ",";
-                else
-                    audio_check = true;
-
-                buffer += "es1370";
-            }
+                buffer += "es1370,";
+
+            return buffer.Substring(0, buffer.Length - 1) + " ";
+        }
             
-            buffer += " ";
-
-            return buffer.Substring(0, buffer.Length - 1) + " "; 
-        }
-
     }
 
     public class Debug




More information about the Ros-diffs mailing list