From: Toni Wilen Date: Wed, 21 Nov 2012 18:39:10 +0000 (+0200) Subject: moduled volume range fix X-Git-Tag: 2500~4 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=3d943b4152f356844c38d3383e4c63a5c17cab07;p=francis%2Fwinuae.git moduled volume range fix --- diff --git a/audio.cpp b/audio.cpp index 29e31de9..619ddb72 100644 --- a/audio.cpp +++ b/audio.cpp @@ -1211,6 +1211,9 @@ static void loaddat (int nr, bool modper) cdp[1].per = PERIOD_MIN * CYCLE_UNIT; } else if (audav) { cdp[1].vol = cdp->dat; + cdp[1].vol &= 127; + if (cdp[1].vol > 64) + cdp[1].vol = 64; } } else { #if TEST_AUDIO > 0