Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java - Get current computer sound output

Tags:

java

audio

Is there a way to get the sound from the default audio output for the computer? I don't want to manipulate it, I just want to make a visual representation of the frequencies; much like an equalizer.

like image 914
Jtvd78 Avatar asked Jun 13 '11 02:06

Jtvd78


People also ask

What is AudioSystem in Java?

The AudioSystem class acts as the entry point to the sampled-audio system resources. This class lets you query and access the mixers that are installed on the system. AudioSystem includes a number of methods for converting audio data between different formats, and for translating between audio files and streams.


1 Answers

This question is duplicate of:

Real Time Audio Visualization Java

The java sound API lets you interact with the current audio output. You can find the reference here:

http://www.java-tips.org/java-se-tips/javax.sound/capturing-audio-with-java-sound-api.html

like image 168
Swift Avatar answered Nov 14 '22 23:11

Swift