aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alMidi.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-22 21:53:00 -0700
committerChris Robinson <[email protected]>2014-03-22 21:53:00 -0700
commit9959972c7e2a7479d8776e71133cfddf5cf756ce (patch)
tree88974836f0f0f710f6dbc38ad9fa1c1df262427e /OpenAL32/alMidi.c
parent842aeb888b79883a08c672ed12f1f2b87a0fb46e (diff)
Add a stub 'soft' MIDI synth handler
Eventually this one will be used to handle MIDI internally, using our own mixers and resamplers.
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;
}