aboutsummaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-25 11:01:28 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-25 11:01:28 +0000
commit0030b564676f47b921593084ea952968eb74eaf7 (patch)
treeb6d7c17324e007b69406ff211917155d006a3d04 /src/base
parent27e56b7e6c9f42cb853cf5d3c9cd769d74b65a03 (diff)
downloadusdx-0030b564676f47b921593084ea952968eb74eaf7.tar.gz
usdx-0030b564676f47b921593084ea952968eb74eaf7.tar.xz
usdx-0030b564676f47b921593084ea952968eb74eaf7.zip
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
Diffstat (limited to '')
-rw-r--r--src/base/URecord.pas6
1 files changed, 1 insertions, 5 deletions
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);