Daivuk / PureDOOM

Pure DOOM - Single Header Doom Source Port
GNU General Public License v2.0
288 stars 23 forks source link

MIDI for linux in example code #16

Closed ColleagueRiley closed 7 months ago

ColleagueRiley commented 7 months ago

Could your SDL example support MIDI calls for Linux instead of only Windows and MacOS?

I plan on looking into this issue, I might create a PR for this later if you don't get to it.

Daivuk commented 7 months ago

If you know how, and it doesn't requires crazy amount of setup/thirdparty libs/giant code, then propose a PR with it. I don't personally run linux. I only have Windows and Mac so I can't debug this.

Daivuk commented 7 months ago

Also, wouldn't this kind of thing be distro dependant? Make sure it's toggable with a CMake option if you're not sure it will work on all linux.

ColleagueRiley commented 7 months ago

I saw a way of doing it via the Linux API, but it didn't work for me. It wouldn't be distro dependent, it could be audio driver dependent .

Daivuk commented 7 months ago

ya, then it's not great... Windows and Mac have standard MIDI API. I would leave it as is.