From d8b0d241bdd4925d05e3cf1c6028ac5d22cff5c3 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Mon, 27 Apr 2009 21:17:58 +0000 Subject: [PATCH] Remove the volume hack again, never listen to woody Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3372 --- src/hardware/dbopl.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/hardware/dbopl.cpp b/src/hardware/dbopl.cpp index c077d939..02106d86 100644 --- a/src/hardware/dbopl.cpp +++ b/src/hardware/dbopl.cpp @@ -49,8 +49,6 @@ namespace DBOPL { #define MAX_SAMPLES 256 #define OPLRATE ((double)(14318180.0 / 288.0)) -//Shift the final volume up at the end -#define POST_VOLSHIFT (1) //Only need 4 valid bits at the top for vibrato #define VIBRATO_SH ( 32 - 4 ) @@ -1164,9 +1162,6 @@ void Chip::GenerateBlock2( Bitu samples ) { count++; ch = (ch->*(ch->synthHandler))(); } - for ( Bitu i = 0; i < Work.samples; i++ ) { - Work.output[i] <<= POST_VOLSHIFT; - } } void Chip::GenerateBlock3( Bitu samples ) { @@ -1182,11 +1177,6 @@ void Chip::GenerateBlock3( Bitu samples ) { count++; ch = (ch->*(ch->synthHandler))(); } - for ( Bitu i = 0; i < Work.samples; i++ ) { - Work.output[i*2 + 0] <<= POST_VOLSHIFT; - Work.output[i*2 + 1] <<= POST_VOLSHIFT; - } - } void Chip::Setup( Bit32u rate ) {