I have had a look at the AudioSystem
class but can't seem to figure out how I would go about getting the output stream of the audio in Windows, i.e. what you hear coming out of the speakers?
Then I want to be able to get this input stream and then output it again to a different stream, essentially sending a secondary copy of all sound to another device so that it then can be played?
See Capturing Audio in the Java Tutorial.
Look through the various data lines of the system to discover the one that combines all the sounds. If no software or hardware 'audio loop-back' is enabled, Java will fail to detect it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With