Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture entire Windows sound output?

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?

like image 956
jackgerrits Avatar asked Nov 01 '22 12:11

jackgerrits


1 Answers

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.

like image 196
Andrew Thompson Avatar answered Nov 13 '22 01:11

Andrew Thompson