wx/SDL2 port now initialises MIDI correctly (currently Windows only).
This commit is contained in:
parent
3489af10c4
commit
95c04340cf
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue