I have installed Android AOSP on a few embedded type devices (like a Raspberry Pi 4). I would like to capture the audio output streams from Android, to send it to other software that I created for post processing (like distributing it to various speakers).
I am looking for suggestions/options for doing this.
Do I need to replace the AudioHAL? If so, is there a way to do that without rebuilding the whole AOSP BSP?
Is there any other way to capture the audio output streams from Android (from software that I have created)?