mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Fixed crash on change particular sound options
Happened only when there is a current song but it’s not played, for example in title screen https://forum.zdoom.org/viewtopic.php?t=56631
This commit is contained in:
parent
9435a09f1e
commit
e56cda1350
1 changed files with 6 additions and 1 deletions
|
@ -363,7 +363,12 @@ public:
|
|||
void WildMidiSetOption(int opt, int set);
|
||||
void CreateSMF(TArray<uint8_t> &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);
|
||||
|
|
Loading…
Reference in a new issue