VBA::~VBA() { char winBuffer[2048]; GetModuleFileName(NULL, winBuffer, 2048); char *p = strrchr(winBuffer, '\\'); if(p) *p = 0; regInit(winBuffer); saveSettings(); soundPause(); soundShutdown(); if(rom != NULL) { ((MainWnd *)m_pMainWnd)->writeBatteryFile(); emulator.emuCleanUp(); } if(input) delete input; shutdownDisplay(); CoUninitialize(); }
static void applyNewOptions(tGameOptions *newOptions) { bool oldEnableMouse = gGameOptions.enableMouse; // If there is no change in game options, then nothing to do. if (memcmp(newOptions, &gGameOptions, sizeof(gGameOptions)) == 0) { return; } if ((gGameOptions.enableSound != newOptions->enableSound) || (gGameOptions.mockingBoardSlot != newOptions->mockingBoardSlot) || (gGameOptions.enableSpeechChip != gGameOptions.enableSpeechChip)) { // If the sound parameters have changed, then re-init or shutdown sounds if (newOptions->enableSound) { soundInit(newOptions->mockingBoardSlot, newOptions->enableSpeechChip); } else { soundShutdown(); } } memcpy(&gGameOptions, newOptions, sizeof(gGameOptions)); gGameOptions.optionsSaved = false; if (oldEnableMouse != gGameOptions.enableMouse) { if (gGameOptions.enableMouse) { gGameOptions.enableMouse = initMouse(&gMouseCallbacks); } } saveOptions(); }
SoundDriver * systemSoundInit() { SoundDriver * drv = 0; soundShutdown(); drv = newXAudio2_Output(); return drv; }
static void quitGame(void) { unshowDblLoRes(); videomode(VIDEOMODE_40x24); clrscr(); shutdownMouse(); soundShutdown(); uninitMachine(); exit(0); }
SoundDriver * systemSoundInit() { SoundDriver * drv = 0; soundShutdown(); drv = newXAudio2_Output(); if( drv ) { if ( theVBA.throttle ) drv->setThrottle( theVBA.throttle ); } return drv; }
EXPORT(sqInt) shutdownModule(void) { return soundShutdown(); }
void Window::vUnInitSystem() { soundShutdown(); }
SoundDriver* systemSoundInit() { soundShutdown(); return new SoundSDL(); }
void retro_deinit(void) { emulating = 0; CPUCleanUp(); soundShutdown(); }
shutdownModule(void) { return soundShutdown(); }
shutdownModule(void) { // SoundPlugin>>#shutdownModule return soundShutdown(); }