Intercepting OS's Sound Output

I am developing a desktop 'widget' system in java, and one of the widgets I plan to develop is a simple sound visualization display, similar to those found in many media players except that it would display any sound the OS outputs.

However, I am struggling to find a method of intercepting the operating system's sound output. The functionality I require is basically the same as that required for an application that can record "what you hear". Is it possible to do this using the javax.sound / jmf libraries?

[527 byte] By [sk4425a] at [2007-11-26 19:50:41]
# 1
It's not possible in Java. The solutions seem to be limited to one of:1) Use a soundcard with an internal digital loopback2) Make your own analogue loopback by physically connecting a line out to a line in.3) Use a virtual soundcard.
Mr_Evila at 2007-7-9 22:40:09 > top of Java-index,Security,Cryptography...
# 2

Thanks for the quick response. Looks like i'll have to forget about that!

However, one of the other widgets I plan to develop is a simple media player, using the JMF. Could you tell me if it is possible to intercept the raw sound data that would be played back via a JMF media player (for the purpose of creating a visualisation for the audio it is playing)?

Many Thanks

sk4425a at 2007-7-9 22:40:09 > top of Java-index,Security,Cryptography...