I’m trying to make SDL_mixer use bundled libtimidity and it has been a nightmare so far…
Mix_SetTimidityCfg("timidity.cfg"); Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 4096); auto music = Mix_LoadMUS("sample.midi"); Mix_PlayMusic(music, 0);
This code works perfectly fine for Native MIDI driver but not for Timidity.
I tried several config files, midi files, different parameters for Mix_OpenAudio etc.
Mix_GetError() returns “”, config file is read properly, actual MIDI decoding is running (TIMIDITY_GetSome is called from audio thread) but I hear no sound.
What am I missing? Can you share a working sample please?