diff --git a/src/sound/i_musicinterns.h b/src/sound/i_musicinterns.h index 531d69ec7..9bf9f8aed 100644 --- a/src/sound/i_musicinterns.h +++ b/src/sound/i_musicinterns.h @@ -363,7 +363,12 @@ public: void WildMidiSetOption(int opt, int set); void CreateSMF(TArray &file, int looplimit=0); int ServiceEvent(); - int GetDeviceType() const override { return MIDI->GetDeviceType(); } + int GetDeviceType() const override + { + return nullptr == MIDI + ? MusInfo::GetDeviceType() + : MIDI->GetDeviceType(); + } protected: MIDIStreamer(const char *dumpname, EMidiDevice type);