this is my POC terminal audio sampler.
The noises are those three samples. The UI is you just press
the number of the sample and it plays it.
I am showing off the audio part.
The audio wav files are playing from scratch each
time, (like the sndio handle and the libsndfile handle
are not re-used). If I keep going on this I will
fix that so there is like a static list of wav files.
And I will re-use the sndio handle or i will
have like a sndio handle "pool".
I have previous curses programs where I use libevent
to make them not "one thing at a time".
So like you could play wav files over each other up
to the amount of sndio handles you have.
(theoretically)
A long shot goal is I could have the program be able
to record a wav file for you O_o.
#openbsd #sndio #chicken #scheme #c