diff options
author | mogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-15 14:45:34 +0000 |
---|---|---|
committer | mogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-15 14:45:34 +0000 |
commit | 226ecf542b83fdbe1fa78534dab30082c98603ce (patch) | |
tree | 0332ce309d3a30f5d332cbe0dcad422cb345dbab /Game/Code/Classes/URecord.pas | |
parent | 73f3681047e8ae3ceeafab97c92578f341b7a9e9 (diff) | |
download | usdx-226ecf542b83fdbe1fa78534dab30082c98603ce.tar.gz usdx-226ecf542b83fdbe1fa78534dab30082c98603ce.tar.xz usdx-226ecf542b83fdbe1fa78534dab30082c98603ce.zip |
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
Diffstat (limited to 'Game/Code/Classes/URecord.pas')
-rw-r--r-- | Game/Code/Classes/URecord.pas | 6 |
1 files changed, 3 insertions, 3 deletions
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) |