Search
lxdream.org :: lxdream :: r473:bbbeca9ccf13
lxdream 0.9.1
released Jun 29
Download Now
changeset473:bbbeca9ccf13
parent472:8a3ae91eb215
child474:a0345bf296ed
authornkeynes
dateWed Oct 31 09:05:13 2007 +0000 (12 years ago)
Use the higher of 0x28 and 0x29 for volume until we figure out how it really
works
src/aica/aica.c
1.1 --- a/src/aica/aica.c Wed Oct 31 09:02:18 2007 +0000
1.2 +++ b/src/aica/aica.c Wed Oct 31 09:05:13 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;
.