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 "mouse.h"
|
||||||
#include "nvr.h"
|
#include "nvr.h"
|
||||||
#include "plat-joystick.h"
|
#include "plat-joystick.h"
|
||||||
|
#include "plat-midi.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
#include "disc.h"
|
#include "disc.h"
|
||||||
|
|
@ -634,6 +635,7 @@ int start_emulation(void* params)
|
||||||
|
|
||||||
loadbios();
|
loadbios();
|
||||||
resetpchard();
|
resetpchard();
|
||||||
|
midi_init();
|
||||||
|
|
||||||
display_start(params);
|
display_start(params);
|
||||||
mainthreadh = SDL_CreateThread(mainthread, "Main Thread", NULL);
|
mainthreadh = SDL_CreateThread(mainthread, "Main Thread", NULL);
|
||||||
|
|
@ -684,6 +686,8 @@ int stop_emulation()
|
||||||
endblit();
|
endblit();
|
||||||
SDL_DestroyMutex(ghMutex);
|
SDL_DestroyMutex(ghMutex);
|
||||||
|
|
||||||
|
midi_close();
|
||||||
|
|
||||||
pclog("Emulation stopped.\n");
|
pclog("Emulation stopped.\n");
|
||||||
|
|
||||||
wx_close_status(ghwnd);
|
wx_close_status(ghwnd);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue