vsariola / sointu

Fork of 4klang that can target 386, amd64 and WebAssembly. Tools run on Windows, Mac & Linux
MIT License
239 stars 15 forks source link

Usage examples in C & asm include with track info. #100

Closed LeStahL closed 10 months ago

LeStahL commented 10 months ago

Hi! I added a little example code for using sointu in C under Windows and Linux.

I also took the opportunity to sneak a generated asm include file with the track information (similiar to the C header) into the diff, which comes in really handy for my intro code :D

Let me know if you'd like some x86 asm code examples as well.

vsariola commented 10 months ago

Thanks! This is exactly what we need so people know how to use sointu. I'll review & merge asap when I have time

vsariola commented 10 months ago

Merged. Had to change the tests workflow to not build examples as a part of the workflow as it was complaining about missing alsa.

I guess we could also use CI to check that the examples build, but tests workflow feels wrong place for that.