sound: fix ym2612 address handling

I already fixed this back in 2017 with
151df6adf9, but forgot about
ym2612_write_local(). Fixes missing sounds in Overdrive2.
This commit is contained in:
notaz 2023-06-12 23:55:50 +03:00 committed by irixxxx
parent 5864c4214a
commit 225260ba40
2 changed files with 13 additions and 31 deletions

View file

@ -1886,6 +1886,7 @@ int YM2612Write_(unsigned int a, unsigned int v)
switch( a & 3 ){
case 0: /* address port 0 */
case 2: /* address port 1 */
/* reminder: this is not used, see ym2612_write_local() */
ym2612.OPN.ST.address = v;
ym2612.addr_A1 = (a & 2) >> 1;
ret = 0;