Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Capturing speakers audio.  RSS feed

Ed Herrero
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,

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).

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!