cd: fix cycle overflow issue
[picodrive.git] / pico / pico_int.h
index a33051c..a8bf7ee 100644 (file)
@@ -447,7 +447,8 @@ typedef struct
        _scd scd;\r
        int pcm_mixbuf[PCM_MIXBUF_LEN * 2];\r
        int pcm_mixpos;\r
-       int pcm_mixbuf_dirty;\r
+       char pcm_mixbuf_dirty;\r
+       char pcm_regs_dirty;\r
 } mcd_state;\r
 \r
 // XXX: this will need to be reworked for cart+cd support.\r
@@ -663,6 +664,7 @@ enum pcd_event {
 extern unsigned int pcd_event_times[PCD_EVENT_COUNT];\r
 void pcd_event_schedule(unsigned int now, enum pcd_event event, int after);\r
 void pcd_event_schedule_s68k(enum pcd_event event, int after);\r
+void pcd_prepare_frame(void);\r
 unsigned int pcd_cycles_m68k_to_s68k(unsigned int c);\r
 int  pcd_sync_s68k(unsigned int m68k_target, int m68k_poll_sync);\r
 void pcd_run_cpus(int m68k_cycles);\r