DXX-Rebirth Forum
Midi device selection - Printable Version

+- DXX-Rebirth Forum (https://forum.dxx-rebirth.com)
+-- Forum: DXX-Rebirth (https://forum.dxx-rebirth.com/forumdisplay.php?fid=3)
+--- Forum: General (https://forum.dxx-rebirth.com/forumdisplay.php?fid=5)
+--- Thread: Midi device selection (/showthread.php?tid=1112)



Midi device selection - xlastovi - 04-03-2019

Hello,

problem with MIDI music on Windows was essential for me, I could not use DXX-Rebirth. So I accepted the challenge and went to fix it. I wasted about 12 hours on the problem as I was unlucky and got confused with source code. I thought the music was played through SDL_mixer, which is false. Then I thought SDL_mixer is compiled from source and I compiled the software only to realize it is not.

In the end it is only one number, a single byte deciding which MIDI device to use.

In common/misc/hmp.cpp change MIDI_MAPPER to a MIDI device number. There are numbered from zero and 0 = Windows software synth.

For users, I have available a patched executable of 0.58.1.