From 226ecf542b83fdbe1fa78534dab30082c98603ce Mon Sep 17 00:00:00 2001 From: mogguh Date: Fri, 15 Aug 2008 14:45:34 +0000 Subject: VoicePassthrough is now available at the options, turns playback from the microphone on/off git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1261 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/URecord.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Game/Code/Classes/URecord.pas') diff --git a/Game/Code/Classes/URecord.pas b/Game/Code/Classes/URecord.pas index 87aa6ea3..9adfebb0 100644 --- a/Game/Code/Classes/URecord.pas +++ b/Game/Code/Classes/URecord.pas @@ -193,12 +193,12 @@ begin // and adjust it because capture buffers are always mono Sound.AudioFormat.Channels := 1; DeviceCfg := @Ini.InputDeviceConfig[CfgIndex]; -// TODO: make this an ini-var, e.g. VoicePassthrough, VoiceRepeat or LiveVoice -{$IFDEF VOICE_PASSTHROUGH} +//{$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} +//{$ENDIF} end; // replace old with new buffer (Note: Sound might be nil) -- cgit v1.2.3