From 0030b564676f47b921593084ea952968eb74eaf7 Mon Sep 17 00:00:00 2001 From: tobigun Date: Sat, 25 Oct 2008 11:01:28 +0000 Subject: Software boost enabled again. TODO: boost per device, not for all. Note: do not use software boost if possible. Always adjust the the mixer options (volume, mic boost) there first. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1472 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/base/URecord.pas | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/base/URecord.pas') diff --git a/src/base/URecord.pas b/src/base/URecord.pas index 3946c87c..132bafd5 100644 --- a/src/base/URecord.pas +++ b/src/base/URecord.pas @@ -275,7 +275,7 @@ var i: integer; begin // apply software boost - //BoostBuffer(Buffer, Size); + BoostBuffer(Buffer, BufferSize); // voice passthrough (send data to playback-device) if (assigned(VoiceStream)) then @@ -473,7 +473,6 @@ var Boost: byte; begin // TODO: set boost per device - { case Ini.MicBoost of 0: Boost := 1; 1: Boost := 2; @@ -481,8 +480,6 @@ begin 3: Boost := 8; else Boost := 1; end; - } - Boost := 1; // at the moment we will boost SInt16 data only if (AudioFormat.Format = asfS16) then @@ -496,7 +493,6 @@ begin begin Value := SampleBuffer^[i] * Boost; - // TODO : JB - This will clip the audio... cant we reduce the "Boost" if the data clips ?? if Value > High(Smallint) then Value := High(Smallint); -- cgit v1.2.3