Mercurial > repos > blastem
comparison sms.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 | 1843adbe9899 |
children | a6687a6fb69d |
comparison
equal
deleted
inserted
replaced
2526:9c6f53425140 | 2527:7e1215d17571 |
---|---|
280 { | 280 { |
281 z80_context *z80 = vcontext; | 281 z80_context *z80 = vcontext; |
282 sms_context *sms = z80->system; | 282 sms_context *sms = z80->system; |
283 psg_run(sms->psg, z80->Z80_CYCLE); | 283 psg_run(sms->psg, z80->Z80_CYCLE); |
284 sms->psg->pan = value; | 284 sms->psg->pan = value; |
285 if (sms->psg->vgm) { | |
286 vgm_gg_pan_write(sms->psg->vgm, sms->psg->cycles, sms->psg->pan); | |
287 } | |
285 return vcontext; | 288 return vcontext; |
286 } | 289 } |
287 | 290 |
288 static void *ppi_write(uint32_t location, void *vcontext, uint8_t value) | 291 static void *ppi_write(uint32_t location, void *vcontext, uint8_t value) |
289 { | 292 { |