Thanks and thanks
Yep, I'll try with camd
Update:
I had to create my own header file for gcc in the end, I'll upload my generated header here for the future generations
It kind of works with DOOM but doesn't sound quite right, I think it's some kind of timing issue. I can't tell if it's a problem with the data being supplied to the library or if I'm just using it wrong.
The other option is to just read a midi file myself but after looking at the code examples it seems ridiculously complicated.
Instead of a nice a simple
PHP Code:
camd->parseMidi(FILE *filename);
or even a
PHP Code:
camd->parseMidi(byte *data);
It seems to need to run in a separate thread and constantly adjust the timing of the file (tempo).....painful!