From 0ae9d3b93ec3dee22353e7fd7dc4bebf5c77b2a0 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Wed, 13 Nov 2019 22:56:01 +0100 Subject: [PATCH] Fix crash when fluidsynth is not compiled in --- libraries/zmusic/musicformats/music_midi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/zmusic/musicformats/music_midi.cpp b/libraries/zmusic/musicformats/music_midi.cpp index eeaa78e86..9e080a5d0 100644 --- a/libraries/zmusic/musicformats/music_midi.cpp +++ b/libraries/zmusic/musicformats/music_midi.cpp @@ -276,6 +276,7 @@ MIDIDevice *MIDIStreamer::CreateMIDIDevice(EMidiDevice devtype, int samplerate) break; default: + throw std::runtime_error("MIDI device type not compiled in"); break; } }