I tried getting the system output device stream buffer using NAudio but I had this problem:
C# Unity 3D NAudio throws NullPointerException while checking for default audio endpoint
The same exact code mentioned in that question works just fine in my windows forms projects(outside Unity).
NAudio would be the perfect solution for me, but it just doesn't want to cooperate with Unity for some reason. So is there any free alternative to NAudio or any other free possible solution for this problem?