comparison psg.c @ 2527:7e1215d17571

Log Game Gear PSG Pan to VGM
author Michael Pavone <pavone@retrodev.com>
date Mon, 11 Nov 2024 11:20:22 -0800
parents f6213de4224c
children
comparison
equal deleted inserted replaced
2526:9c6f53425140 2527:7e1215d17571
196 } else { 196 } else {
197 vgm_sn76489_write(context->vgm, context->cycles, (context->counter_load[chan] & 0xF) | base); 197 vgm_sn76489_write(context->vgm, context->cycles, (context->counter_load[chan] & 0xF) | base);
198 vgm_sn76489_write(context->vgm, context->cycles, context->counter_load[chan] >> 4 & 0x3F); 198 vgm_sn76489_write(context->vgm, context->cycles, context->counter_load[chan] >> 4 & 0x3F);
199 } 199 }
200 } 200 }
201 if (context->pan != 0xFF) {
202 vgm_gg_pan_write(context->vgm, context->cycles, context->pan);
203 }
201 } 204 }
202 205
203 void psg_serialize(psg_context *context, serialize_buffer *buf) 206 void psg_serialize(psg_context *context, serialize_buffer *buf)
204 { 207 {
205 save_int16(buf, context->lsfr); 208 save_int16(buf, context->lsfr);