The idea of Soundflower it is to allow applications to pass audio to other applications by routing your audio output as an audio input to the system. I do not know much about Java in this area and I just would like to know if it's possible to write using it..
Asked
Active
Viewed 77 times
1 Answers
0
To create an Audio mixer, you can use the Audio system class. You can find the official documentation here to know more about implementation.
Quick Tip :
AudioInputStream audioIn = AudioSystem.getAudioInputStream(MyClazz.class.getResource("music.wav"));
Clip clip = AudioSystem.getClip();
clip.open(audioIn);
clip.start();
Also go through the following threads which must give you more insights on this .

codeX
- 4,842
- 2
- 31
- 36
-
The code example is a bit suspicious. I'd trust it more if the Java output was done via a SourceDataLine. A Clip will not allow output until the entire sound file is opened and loaded into RAM. In other words, the sound file has to be finite. SourceDataLine, however, can continuously read and write with open lines. – Phil Freihofner Nov 23 '17 at 00:34