aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
authormogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-08-15 17:12:48 +0000
committermogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-08-15 17:12:48 +0000
commit0da6b7acef477cdfc06aa7a7493721e4a512523c (patch)
treee4de785ac790300004758fbc5e29e2cd3c27f88b /Game
parent23d8a8fda3b446d8884b8fd01e1b48fb24edee8d (diff)
downloadusdx-0da6b7acef477cdfc06aa7a7493721e4a512523c.tar.gz
usdx-0da6b7acef477cdfc06aa7a7493721e4a512523c.tar.xz
usdx-0da6b7acef477cdfc06aa7a7493721e4a512523c.zip
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
Diffstat (limited to 'Game')
-rw-r--r--Game/Code/Classes/URecord.pas14
1 files changed, 6 insertions, 8 deletions
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)