Search
lxdream.org :: lxdream/src/aica/aica.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/aica.c
changeset 473:bbbeca9ccf13
prev465:3bd7be575792
next561:533f6b478071
author nkeynes
date Thu Nov 08 11:54:16 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Add sh4ptr_t type, start converting bare pointer refs to it
file annotate diff log raw
1.1 --- a/src/aica/aica.c Sat Oct 27 05:47:21 2007 +0000
1.2 +++ b/src/aica/aica.c Thu Nov 08 11:54:16 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: aica.c,v 1.25 2007-10-27 05:47:21 nkeynes Exp $
1.6 + * $Id: aica.c,v 1.26 2007-10-31 09:05:13 nkeynes Exp $
1.7 *
1.8 * This module implements the AICA's IO interfaces, as well
1.9 * as providing the core AICA module to the system.
1.10 @@ -413,7 +413,9 @@
1.11 channel->pan = val;
1.12 break;
1.13 case 0x28: /* Volume */
1.14 - channel->vol = aica_volume_table[val & 0xFF];
1.15 + // This isn't remotely correct, but it will have to suffice until I have
1.16 + // time to figure out what's actually going on here...
1.17 + channel->vol = aica_volume_table[max((val & 0xFF),((val>>8)&0xFF))];
1.18 break;
1.19 default: /* ??? */
1.20 break;
.