I am trying to capture the audio output of from the default sink of all the audio played by the system and perform fft on it. On the windows side I can easily do it using WASAPI. How Do I acheive this in linux?
For refence, the project is https://github.com/Dr-42/clwglava In this I specifically want to translate the AudioCapture class to work on linux.
I tried looking into the source code of glava https://github.com/jarcode-foss/glava but it uses pulse. I also tried rummaging my way through the docs but didn't find out how to capture audio from a playback device rather than a cature device. I don't want to create loopback devices using alsa as it involves enabling kernel modules which is not user friendly.