HNHacker News
TopNewBestAskShowJobs

lmichaelis

38 karma · joined June 8, 2024

submissionscomments
lmichaelis··on Show HN: I wrote a partial re-implementation of DirectMusic
I was thinking about contributing to Wine, but I am not experienced with Windows native APIs. There is also a difference in how my library works and how DirectMusic worked originally.

My library uses a "pull"-model, meaning the application must call a function to render more music. DirectMusic was more of an unattended "push"-model where you'd just tell it to play something and it'd set up playback automatically. It'd just play the music in a background thread (maybe even on hardware) and your application could subscribe to certain events (like get a callback on every beat).

lmichaelis··on Show HN: I wrote a partial re-implementation of DirectMusic
I do know about the implementation in Wine, but sadly that one is not really useful for someone wanting to add support into a cross-platform app. Wine's implementation is tightly integrated with the Windows APIs it tries to recreate, so it has things like IUnknown and other Windows idiosyncrasies that aren't suitable for deployment as a library.
lmichaelis··on Show HN: I wrote a partial re-implementation of DirectMusic
FMOD[1] is a really big one being used in many modern games and Wwise[2] is also available.

[1]: https://www.fmod.com/

[2]: https://www.audiokinetic.com/en/wwise/overview/