Get all output-soundsignals from the soundcard

I want to display all output-audiosignals from the soundcard. How can I realize that?
So far I tried that with the Java Sound API and the following code:
audioFormat = getAudioFormat();
dataLineInfo = new DataLine.Info(TargetDataLine.class, audioFormat);
targetLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo);
targetLine.open(audioFormat);
targetLine.start();          
targetLine.read(dataBuffer, 0, numOfBytes);
private static AudioFormat getAudioFormat(){
float sampleRate = 8000.0F;
int sampleSizeInBits = 16;
int channels = 1;
boolean signed = true;
boolean bigEndian = false;
return new AudioFormat(sampleRate, sampleSizeInBits, channels, signed, bigEndian);
With that I got different results on different computers. Sometimes it displays data
although there isn't any output on my soundcard and on some other computers it displays nothing.
I've already read a lot of tutorials, but they didn't help me.
Thank you.

I want to display all output-audiosignals from the soundcard. How can I realize that?
So far I tried that with the Java Sound API and the following code:
audioFormat = getAudioFormat();
dataLineInfo = new DataLine.Info(TargetDataLine.class, audioFormat);
targetLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo);
targetLine.open(audioFormat);
targetLine.start();          
targetLine.read(dataBuffer, 0, numOfBytes);
private static AudioFormat getAudioFormat(){
float sampleRate = 8000.0F;
int sampleSizeInBits = 16;
int channels = 1;
boolean signed = true;
boolean bigEndian = false;
return new AudioFormat(sampleRate, sampleSizeInBits, channels, signed, bigEndian);
With that I got different results on different computers. Sometimes it displays data
although there isn't any output on my soundcard and on some other computers it displays nothing.
I've already read a lot of tutorials, but they didn't help me.
Thank you.

Similar Messages

Maybe you are looking for

  • Read a text File inside a JAR

    I want to create a plain text file and pack into a JAR file together with my Java Applet such that I can read something inside the flat file as a parameter for the Java Applet. Is that possible to do that? Any sample code?

  • Wishlist for Raptor

    I guess it's a bit late for christmas, but here's my wishlist for Raptor. 1. Statement execution statistics (autotrace). 2. Ability to browse different between different schemas without having to create a new connection for each one. 3. Tabs are grea

  • JS CS5.5-Moving Selected Objects-Please Help!!

    Hello, I have a scritpt that will apply a certain object style to the selected items in the document. I am trying to add a "move" to this scirpt. I would like every item selected in the document to move down .125 inches. I know this is much simpler t

  • Cisco dial-peer path selection with "preference"

    Hi everybody, for a test lab environment i'm testing the integration between cisco voice gateway 3925 and third party voice gateway by means of isdn PRI. here the connection schema: PSTN (emulated)-----> port0/0/0-Cisco3925-port0/0/1 <------- Third p

  • My volume won't work on my iPad all of a sudden???

    The ringer icon won't even show up nor will the volume control in my music, pandora, YouTube, or anything.. How can I fix it?