aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alMidi.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alMidi.c')
-rw-r--r--OpenAL32/alMidi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenAL32/alMidi.c b/OpenAL32/alMidi.c
index 0679b64c..47ad8355 100644
--- a/OpenAL32/alMidi.c
+++ b/OpenAL32/alMidi.c
@@ -19,7 +19,9 @@
MidiSynth *SynthCreate(ALCdevice *device)
{
- MidiSynth *synth = FSynth_create(device);
+ MidiSynth *synth = NULL;
+ if(!synth) synth = SSynth_create(device);
+ if(!synth) synth = FSynth_create(device);
if(!synth) synth = DSynth_create(device);
return synth;
}