diff options
author | Chris Robinson <[email protected]> | 2014-03-22 21:53:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-03-22 21:53:00 -0700 |
commit | 9959972c7e2a7479d8776e71133cfddf5cf756ce (patch) | |
tree | 88974836f0f0f710f6dbc38ad9fa1c1df262427e /OpenAL32/alMidi.c | |
parent | 842aeb888b79883a08c672ed12f1f2b87a0fb46e (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.c | 4 |
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; } |