revision 473:bbbeca9ccf13
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 473:bbbeca9ccf13 |
parent | 472:8a3ae91eb215 |
child | 474:a0345bf296ed |
author | nkeynes |
date | Wed Oct 31 09:05:13 2007 +0000 (14 years ago) |
Use the higher of 0x28 and 0x29 for volume until we figure out how it really
works
works
![]() | src/aica/aica.c | view | annotate | diff | log |
1.1 --- a/src/aica/aica.c Wed Oct 31 09:02:18 2007 +00001.2 +++ b/src/aica/aica.c Wed Oct 31 09:05:13 2007 +00001.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 well1.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 have1.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;
.