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.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.8 * This module implements the AICA's IO interfaces, as well
1.9 * as providing the core AICA module to the system.
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))];