I'm struggling to read the data that comes out of the speakers. The only thing that I can do is just reading the line-in built-in laptop microphone data and stream it into a file for testing.
Is there any way to capture what goes through SourceDataLine objects in the speakers or soundcards mixer? What I pretend to do is changing the TargetDataLine by SourceDataLine in order to capture the bytes going through, but I have no idea how to do it. Any clues?
This is the code I have so far (just for reading line-in devices).