void __declspec(noreturn) exit() { // EnableMenuItem(GetSystemMenu(GetConsoleWindow(), FALSE), SC_CLOSE, MF_ENABLED); exitflag = 1; if (savesndtype) savesnddialog(); if (videosaver_state) main_savevideo(); // stop saving video if (!normal_exit) done_fdd(false); done_tape(); done_dx(); done_gs(); done_leds(); save_nv(); zf232.rs_close(); zf232.zf_close(); done_ie_help(); done_bpx(); GdiplusShutdown(); // timeEndPeriod(1); if (ay[1].Chip2203) YM2203Shutdown(ay[1].Chip2203); //Dexus if (ay[0].Chip2203) YM2203Shutdown(ay[0].Chip2203); //Dexus if (comp.ts.vdac2) vdac2::close_ft8xx(); color(); printf("\nsee you later!\n"); if (!nowait) { SetConsoleTitle("press a key..."); FlushConsoleInputBuffer(GetStdHandle(STD_INPUT_HANDLE)); getch(); } fflush(stdout); SetConsoleCtrlHandler(ConsoleHandler, FALSE); exit(0); }
void YM2203_sh_stop(void) { YM2203Shutdown(); AY8910_sh_stop_ym(); }
void YM2203_sh_stop(void) { YM2203Shutdown(); }
static void ym2203_stop(void *token) { struct ym2203_info *info = token; YM2203Shutdown(info->chip); ay8910_stop_ym(info->psg); }
C_Ym2203Chip::~C_Ym2203Chip() { YM2203Shutdown(chip); }