From 19264794cb011a77a1e81999c7df13c4841e397d Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sat, 30 Jan 2016 16:39:35 +0000 Subject: [PATCH] minor cleanup Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3957 --- src/hardware/dbopl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hardware/dbopl.cpp b/src/hardware/dbopl.cpp index dee31958..4ec4aaed 100644 --- a/src/hardware/dbopl.cpp +++ b/src/hardware/dbopl.cpp @@ -1237,7 +1237,7 @@ void Chip::Setup( Bit32u rate ) { EnvelopeSelect( i, index, shift ); linearRates[i] = (Bit32u)( scale * (EnvelopeIncreaseTable[ index ] << ( RATE_SH + ENV_EXTRA - shift - 3 ))); } - Bit32s attackDiffs[62]; +// Bit32s attackDiffs[62]; //Generate the best matching attack rate for ( Bit8u i = 0; i < 62; i++ ) { Bit8u index, shift; @@ -1279,12 +1279,11 @@ void Chip::Setup( Bit32u rate ) { if ( diff < 0 ) { //Always add one here for rounding, an overshoot will get corrected by another pass decreasing guessAdd++; - } else if ( diff > 0 ) { } } attackRates[i] = bestAdd; //Keep track of the diffs for some debugging - attackDiffs[i] = bestDiff; +// attackDiffs[i] = bestDiff; } for ( Bit8u i = 62; i < 76; i++ ) { //This should provide instant volume maximizing