# HG changeset patch # User Michael Pavone # Date 1602481330 25200 # Node ID 3ce38692a3f2b6769d27dc9303868be96d009710 # Parent 66f08024d9e983b66cb92fee56a08b73c5a4caa9 Set initial pan bits in YM2612 register array and not just the separate lr field of the channel. This fixes an issue in which some channels would be silent in VGM log output diff -r 66f08024d9e9 -r 3ce38692a3f2 ym2612.c --- a/ym2612.c Sun Oct 11 18:01:48 2020 -0700 +++ b/ym2612.c Sun Oct 11 22:42:10 2020 -0700 @@ -179,6 +179,11 @@ for (int i = 0; i < NUM_CHANNELS; i++) { context->channels[i].lr = 0xC0; context->channels[i].logfile = savedlogs[i]; + if (i < 3) { + context->part1_regs[REG_LR_AMS_PMS - YM_PART1_START + i] = 0xC0; + } else { + context->part2_regs[REG_LR_AMS_PMS - YM_PART2_START + i - 3] = 0xC0; + } } context->write_cycle = CYCLE_NEVER; for (int i = 0; i < NUM_OPERATORS; i++) {