Add button in midi settings to refresh midi devices
Deletes and creates a new RT midi instance allowing for midi devices to be plugged in without restarting
This commit is contained in:
parent
65b50f4acc
commit
c1c2b52ba7
5 changed files with 26 additions and 0 deletions
|
|
@ -1129,6 +1129,13 @@ void FurnaceGUI::drawSettings() {
|
|||
ImGui::EndCombo();
|
||||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Reload MIDI devices")) {
|
||||
e->rescanMidiDevices();
|
||||
audioEngineChanged=true;
|
||||
settingsChanged=false;
|
||||
}
|
||||
|
||||
if (hasToReloadMidi) {
|
||||
midiMap.read(e->getConfigPath()+DIR_SEPARATOR_STR+"midiIn_"+stripName(settings.midiInDevice)+".cfg");
|
||||
midiMap.compile();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue