From 0da6b7acef477cdfc06aa7a7493721e4a512523c Mon Sep 17 00:00:00 2001
From: mogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c>
Date: Fri, 15 Aug 2008 17:12:48 +0000
Subject: Removed now unneeded define for VoicePassthrough, added a begin and a
 end

git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1264 b956fd51-792f-4845-bead-9b4dfca2ff2c
---
 Game/Code/Classes/URecord.pas | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

(limited to 'Game')

diff --git a/Game/Code/Classes/URecord.pas b/Game/Code/Classes/URecord.pas
index 9adfebb0..fdd8bb9c 100644
--- a/Game/Code/Classes/URecord.pas
+++ b/Game/Code/Classes/URecord.pas
@@ -8,8 +8,6 @@ interface
 
 {$I switches.inc}
 
-{.$DEFINE VOICE_PASSTHROUGH}
-
 uses Classes,
      Math,
      SysUtils,
@@ -193,12 +191,12 @@ begin
     // and adjust it because capture buffers are always mono
     Sound.AudioFormat.Channels := 1;
     DeviceCfg := @Ini.InputDeviceConfig[CfgIndex];
-//{$IFDEF VOICE_PASSTHROUGH}
-  if (Ini.VoicePassthrough = 1) then
-    // create a voice-stream for passthrough
-    // TODO: map odd players to the left and even players to the right speaker
-    Sound.VoiceStream := AudioPlayback.CreateVoiceStream(CHANNELMAP_FRONT, AudioFormat);
-//{$ENDIF}
+
+    if (Ini.VoicePassthrough = 1) then
+    begin
+      // TODO: map odd players to the left and even players to the right speaker
+      Sound.VoiceStream := AudioPlayback.CreateVoiceStream(CHANNELMAP_FRONT, AudioFormat);
+    end;
   end;
 
   // replace old with new buffer (Note: Sound might be nil)
-- 
cgit v1.2.3