C-Library
About Zig structs and using @ptrCast for getting Zig data in C callbacks
16 Jun 2024In the previous post, I went about my experiments with Zig and the FluidSynth Sequencer API.
I wasn’t fully happy with my Zig code, because I was resorting to global variables and didn’t quite know how to organize it.
The basics of the FluidSynth Sequencer API
15 Jun 2024Today I learned the basics of the FluidSynth Sequencer API. It is not super complicated, but it took me some time to understand the concepts, as not everything is explained in great detail. As often is the case when learning a new API, the best way to learn it is to read through the code of the provided examples, and check the API reference docs as needed.
How to call fluidsynth C API from Zig
05 Nov 2023I find quite cool how quickly you can start using a C library from Zig! No need to write bindings or to fiddle with a FFI, it provides direct integration with C libraries.