diff --git a/src/Spice86.Core/Emulator/Sound/Midi/GeneralMidiDevice.cs b/src/Spice86.Core/Emulator/Sound/Midi/GeneralMidiDevice.cs index 007822c77..9c2e3106c 100644 --- a/src/Spice86.Core/Emulator/Sound/Midi/GeneralMidiDevice.cs +++ b/src/Spice86.Core/Emulator/Sound/Midi/GeneralMidiDevice.cs @@ -54,7 +54,7 @@ private void StartThreadIfNeeded() { } private void RenderThreadMethod() { - if (_audioPlayer is null) { + if (_audioPlayer is null || !File.Exists(SoundFont)) { return; } // General MIDI needs a large buffer to store preset PCM data of musical instruments.