Frustrations of programming Audio

When skill issues hit you in the face, they sure do hit you hard. The last few days of trying to wrangle PulseAudio to work have been quite humbling. The worst part is that I had audio working. My ego couldn't be satisfied with it being so easy, so I had to go about trying to work with the non-simple Async API, only for it to show me who the simple one was. It's all good though it's only making me want to get better at it. I've narrowed it down to my code, which shouldn't be a shocker. It was for me at the time, as I was convinced that while trying to get the Async API to work, I might have left a server connection open to PulseAudio. I got so desperate that I even restarted my computer, which now just feels so hilarious. Those were desperate times. It kind of still is. Since then, I've tested a simple C version and it seems to be working fine. There are no errors anywhere, which makes things worse. So I'm going to have to find out how smarter programmers look beneath the Zig layers to see what's going on. As if things weren't bad enough, I picked the worst time to update Zig, which meant that Visual Studio Debugger no longer works. So it's just a clusterfuck of a scenario. Despite all of this, some part of me really enjoys this. I haven't been able to stop thinking about it, or talking about it for that matter. I'm pretty sure it's a solvable problem and even more psyched at the prospect of digging deeper. First, I have to figure out how to do it though.

Apart from the audio thing, Handmade Hero is going swimmingly. This is the last of the platform layers I need to figure out. After this, it's just programming with Zig. I'm quite surprised I persevered through all of these. Thanks to streaming, I guess. This morning I said I was going to stop the stream about three times before I eventually did. Welcome to programming, I guess.

If you would like to look at the code you can find it [https://github.com/Cijin/handmade]