Skip to content

Commit

Permalink
vgm: fix ym2612 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Berti committed Oct 25, 2019
1 parent e39fa6a commit a81638d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/uk/co/omgdrv/simplevgm/fm/nukeykt/Ym3438.java
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ void OPN2_ChOutput(IYm3438.IYm3438_Type chip) {
/* 32 bit unsigned */
int test_dac = chip.mode_test_2c[5];
/* 16 bit signed */
int out;
short out;
/* 16 bit signed */
int sign;
/* 32 bit unsigned */
Expand All @@ -899,11 +899,11 @@ void OPN2_ChOutput(IYm3438.IYm3438_Type chip) {
}
/* Ch 6 */
if ((((cycles >> 2) == 1) && chip.dacen > 0) || test_dac > 0) {
out = chip.dacdata;
out = (short) chip.dacdata;
out <<= 7;
out >>= 7;
} else {
out = chip.ch_lock;
out = (short) chip.ch_lock;
}
chip.mol = 0;
chip.mor = 0;
Expand Down

0 comments on commit a81638d

Please sign in to comment.