Add -mididevice option

This commit is contained in:
kichikuou
2024-08-17 08:50:22 +09:00
parent be4aec4b02
commit 480548191f
8 changed files with 45 additions and 11 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ MAKO::MAKO(NACT* parent, const Config& config) :
parent->fatal("SDL_GetWindowWMInfo failed: %s", SDL_GetError());
mci_thread = new MCIThread(parent, info.info.win.window);
midi = std::make_unique<MAKOMidi>();
midi = std::make_unique<MAKOMidi>(config.midi_device);
if (!midi->is_available())
use_fm = true;
}