Better HN
topnewbestaskshowjobs
Log inSign up

lmichaelis

38 karma · joined Jun 8, 2024 (2y ago) · 4 submissions

Submissions

comment 2y ago · link · parent

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).

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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/

4.

Show HN: I wrote a partial re-implementation of DirectMusic(github.com ↗)

91 points · by lmichaelis · 2y ago · 20 comments