Added a new MIDIDriver class

This commit is contained in:
Marcelo Fernandez
2018-07-14 09:11:28 -03:00
parent cfcb6e11f2
commit 7a5f9fc08e
28 changed files with 1029 additions and 4 deletions

View File

@ -342,6 +342,10 @@ Error OS_X11::initialize(const VideoMode &p_desired, int p_video_driver, int p_a
AudioDriverManager::initialize(p_audio_driver);
#ifdef ALSAMIDI_ENABLED
driver_alsamidi.open();
#endif
ERR_FAIL_COND_V(!visual_server, ERR_UNAVAILABLE);
ERR_FAIL_COND_V(x11_window == 0, ERR_UNAVAILABLE);
@ -606,6 +610,9 @@ void OS_X11::finalize() {
memdelete(debugger_connection_console);
}
*/
#ifdef ALSAMIDI_ENABLED
driver_alsamidi.close();
#endif
#ifdef JOYDEV_ENABLED
memdelete(joypad);