..it used to rely on upper layer to avoid YM2612Init_940() calls
on menu entry
\r
void YM2612Init_940(int baseclock, int rate)\r
{\r
+ static int oldrate;\r
+\r
+ // HACK\r
+ if (Pico.m.frame_count > 0 && !crashed_940 && rate == oldrate)\r
+ return;\r
+\r
printf("YM2612Init_940()\n");\r
printf("Mem usage: shared_data: %i, shared_ctl: %i\n", sizeof(*shared_data), sizeof(*shared_ctl));\r
\r
shared_ctl->baseclock = baseclock;\r
shared_ctl->rate = rate;\r
add_job_940(JOB940_INITALL);\r
+\r
+ oldrate = rate;\r
}\r
\r
\r