[109] Chaining
- Conlan Walker
- Dec 15, 2023
- 1 min read
Most of the work this week went towards polishing the sound effects driver, and making a program that converts .wav files to .kpm, which is a backwards-compatible iteration of my own kit_acodecPCM format.

This is what it looks like when it runs. Like most of my attempts at making .wav files more fit for purpose, the format is expandable, to the point that the "PCM" part of "kPCM" might become a misnomer at some point.
I wanted to make something that automatically converts wav files to this format, because it was taking me 20 minutes every time to manually type in the header info into a hex editor.
I was going to use Tkinter to make the interface, but I decided not to bother, as this was way faster to make, and is actually preferrable to some degree.
And here's the actual code for it:
As for the rest of sound effect thing, its API is now the simplest it has ever been:

I have no idea how to make this more user-friendly without substantially sacrificing usefulness.
Also learning more Vulkan, but nothing tangible to show on that front yet, so here's the code thus far, which is mostly the changes made to sfx (by volume, anyway):
_sfx.hpp:
sfx.hpp: (not to be confused with _sfx.hpp)
sfx_pcm.cpp
sfx_class.cpp:
sfx_callback.cpp:
main.cpp:
Comments