2

I was wondering if it's possible to capture playing audio on the audio output hardware with a simple Java program, and then write it to an outputstream for example.

Is it?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
user1476621
  • 31
  • 1
  • 2
  • 3
    possible duplicate of [In Java, how do I record the sound output that is going to the speakers?](http://stackoverflow.com/questions/11157289/in-java-how-do-i-record-the-sound-output-that-is-going-to-the-speakers) – Louis Wasserman Jun 23 '12 at 09:44
  • This was asked literally yesterday. – Louis Wasserman Jun 23 '12 at 09:44
  • Different question (at least as asked): yesterday's asks about recording what is output by the current app, this asks about recording what is going to the hardware, possibly by other apps. – Bjorn Roche Jun 23 '12 at 15:23

1 Answers1

0

If your desire is to record the output of all programs to a given audio device using a java app, like audiohijackpro, the short answer is no, this is not possible without native code. It is, in fact, quite difficult to do in any language. As far as I know, no platform makes this easy.

On some environments, there is a workaround, eg, http://cycling74.com/soundflower-landing-page/, but it requires that your end user cooperate.

Bjorn Roche
  • 11,279
  • 6
  • 36
  • 58