by RealNC » Tue Dec 27, 2016 11:42 pm
I'd need to implement native MIDI for all three platforms. And on Windows it's a deprecated API (but since it's Windows, they'll be providing the API anyway for probably the next 10 years or so.)
The old audio engine is just SDL_mixer, which does implement MIDI for all platforms (and thus Hugor 1.0 has MIDI support), but it has shitty support for non-MIDI stuff. Which is why I wrote a new audio engine.
However, that also means I now need to support MIDI myself, and doing three implementations for each platform is more work. What I want to do is just do MIDI synthesis in the interpreter and ship a soundfont (SF2 file) with it. Which also means it will sound better, and most importantly, will sound exactly the same on all platforms. In Hugor 1.0, MIDI sounds completely different between Windows, Linux and Mac.
I'm also toying with the idea of letting the game use its own soundfont.
Right now, all parts are actually in place. The only thing that's missing is finding a soundfont file that a) sounds good, b) is small (something like 5MB), and c) is redistributable without worrying about copyright infringement.
I'd need to implement native MIDI for all three platforms. And on Windows it's a deprecated API (but since it's Windows, they'll be providing the API anyway for probably the next 10 years or so.)
The old audio engine is just SDL_mixer, which does implement MIDI for all platforms (and thus Hugor 1.0 has MIDI support), but it has shitty support for non-MIDI stuff. Which is why I wrote a new audio engine.
However, that also means I now need to support MIDI myself, and doing three implementations for each platform is more work. What I want to do is just do MIDI synthesis in the interpreter and ship a soundfont (SF2 file) with it. Which also means it will sound better, and most importantly, will sound exactly the same on all platforms. In Hugor 1.0, MIDI sounds completely different between Windows, Linux and Mac.
I'm also toying with the idea of letting the game use its own soundfont.
Right now, all parts are actually in place. The only thing that's missing is finding a soundfont file that a) sounds good, b) is small (something like 5MB), and c) is redistributable without worrying about copyright infringement.