Пример #1
0
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();
}
Пример #2
0
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();
}
Пример #3
0
SoundDriver * systemSoundInit()
{
    SoundDriver * drv = 0;
    soundShutdown();
    drv = newXAudio2_Output();

    return drv;
}
Пример #4
0
static void quitGame(void)
{
    unshowDblLoRes();
    videomode(VIDEOMODE_40x24);
    clrscr();
    shutdownMouse();
    soundShutdown();
    
    uninitMachine();
    
    exit(0);
}
Пример #5
0
SoundDriver * systemSoundInit()
{
	SoundDriver * drv = 0;
	soundShutdown();

	drv = newXAudio2_Output();

	if( drv ) 
	{
		if ( theVBA.throttle )
			drv->setThrottle( theVBA.throttle );
	}

	return drv;
}
Пример #6
0
EXPORT(sqInt) shutdownModule(void) {
	return soundShutdown();
}
Пример #7
0
void Window::vUnInitSystem()
{
    soundShutdown();
}
Пример #8
0
SoundDriver* systemSoundInit()
{
    soundShutdown();

    return new SoundSDL();
}
Пример #9
0
void retro_deinit(void)
{
   emulating = 0;
   CPUCleanUp();
   soundShutdown();
}
Пример #10
0
shutdownModule(void) {
	return soundShutdown();
}
Пример #11
0
shutdownModule(void)
{
	// SoundPlugin>>#shutdownModule
	return soundShutdown();
}