I need to write some java code that will listen to the audio that other processes produce. I've looked around and it seems I should use PulseAudio. If I am not mistaken, I need to define a sink that will be my java process, and tell the source (alsa?) to go there. I failed to find any details on how to do this.
And - what should I use on the java side? This gives me 0 mixers:
Info[] mis = AudioSystem.getMixerInfo();
for (Info mi : mis)
{
System.out.println(mi.getName());
System.out.println(mi.getVendor());
System.out.println(mi.getDescription());
System.out.println("---------------");
}