From 4a83f4d25120927618d410656b99b0b2057fccc9 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 14 Dec 2018 15:52:40 +0200 Subject: [PATCH] - disable music playback if WinMM stream cannot be opened https://forum.zdoom.org/viewtopic.php?t=62888 --- src/sound/mididevices/music_win_mididevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sound/mididevices/music_win_mididevice.cpp b/src/sound/mididevices/music_win_mididevice.cpp index f9820033f..b6ddd46a2 100644 --- a/src/sound/mididevices/music_win_mididevice.cpp +++ b/src/sound/mididevices/music_win_mididevice.cpp @@ -198,6 +198,10 @@ int WinMIDIDevice::Open(MidiCallback callback, void *userdata) } } } + else + { + return 1; + } } return 0; }