I'm trying to set up my Raspberry Pi to continuously record the last X minutes of audio until given the command to save it to a file. The only comparison I can make is an NVIDIA Shadowplay for audio. My goal with this is to have it constantly recording my band when practicing so if we play something that we like and want to keep I can save the last few minutes of audio.
I'm already able to record our multitrack audio interface via
ffmpeg on the Pi, but right now the set up is repeating (every X minutes) the command to record X minutes of audio to a timestamp-named file. This isn't exactly what I'm looking for as I may end up splitting the "good" content across two files. If possible I'd also like to avoid writing to the disk until actually saving the audio, keeping the continuous recording as some sort of circular buffer in memory. I'm willing to write some C/Python/Bash if necessary!