So I got the midi file playback working how I want but now I am having a bit of a problem with the midi driver.
I got the settings of the midi driver correct so that midi events are being received by Fluidsynth. However, they aren't getting passed to the synth properly. I am able to print out midi event data from my midi keyboard just fine but when my handle_midi_event_func_t returns I get the error message:
** (process:1822): CRITICAL **: fluid_synth_noteon: assertion 'synth != NULL' failed.
I am not sure why I am getting this message, the synth works fine when using the player. I must be missing a step... Here is what I am doing:
1. create settings
2. set my midi driver settings
3. create midi driver
4. create synth
5. load soundfond
6. set audio driver settings
7. create audio driver
When I return from my function I call fluid_synth_handle_midi_event((fluid_synth_t*) data, event).
Do you know why my events aren't passing onto the synth properly?