From 95c04340cff1e9702e94f8233179390b46acf4db Mon Sep 17 00:00:00 2001 From: SarahW Date: Tue, 10 Oct 2017 19:36:15 +0100 Subject: [PATCH] wx/SDL2 port now initialises MIDI correctly (currently Windows only). --- src/wx-sdl2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wx-sdl2.c b/src/wx-sdl2.c index 39a5607..72c6a18 100644 --- a/src/wx-sdl2.c +++ b/src/wx-sdl2.c @@ -28,6 +28,7 @@ #include "mouse.h" #include "nvr.h" #include "plat-joystick.h" +#include "plat-midi.h" #include "sound.h" #include "thread.h" #include "disc.h" @@ -634,6 +635,7 @@ int start_emulation(void* params) loadbios(); resetpchard(); + midi_init(); display_start(params); mainthreadh = SDL_CreateThread(mainthread, "Main Thread", NULL); @@ -684,6 +686,8 @@ int stop_emulation() endblit(); SDL_DestroyMutex(ghMutex); + midi_close(); + pclog("Emulation stopped.\n"); wx_close_status(ghwnd);