]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
moduled volume range fix
authorToni Wilen <twilen@winuae.net>
Wed, 21 Nov 2012 18:39:10 +0000 (20:39 +0200)
committerToni Wilen <twilen@winuae.net>
Wed, 21 Nov 2012 18:39:10 +0000 (20:39 +0200)
audio.cpp

index 29e31de9cf737633ce87b9bcbdcfa3c2ccb58ea9..619ddb72edd1be005f47aff3bba48dec1fb4a25a 100644 (file)
--- 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