0

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..

LITEFINE
  • 1
  • 1
  • No, Java can't do this. SoundFlower ihas to run as a system extension to do this, you can't do that with Java. – greg-449 Nov 21 '17 at 17:12

1 Answers1

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 .

How to run .mp3 in java

Change mixer to output sound using java

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