Old 25th August 2011, 06:31
philfrei philfrei is offline
Junior Member
Join Date: Aug 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Java sound problem?

I was told by a user of Linux Mint 11 that he could not hear the sounds on an Applet that I wrote.

Are there any known issues?

Would it be possible to have someone else with Mint 11 (or any Linux system, for that matter) confirm that the sound is or isn't working?

The link is here:

It's kind of fun to play around with, very easy to use. It was built using javax.sound.sampled library, producing a tone that responds to mouse drags.

Reply With Quote
Sponsored Links
Old 16th September 2011, 17:37
jtsnake jtsnake is offline
Junior Member
Join Date: Sep 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Java sound problem?


I'm on Linux Mint 11

I tried your applet (http://hexara.com/VSL/JTheremin.htm) and I got a tone just fine. It responded to the mouse dragging and everything. I was hearing some popping noises, but that could have been my headphones, who knows.

I found your post because I'm trying to do speech recognition on Sphinx 4 (http://cmusphinx.sourceforge.net/sphinx4/), but I can't get the microphone to pick anything up using their test audiotool (http://cmusphinx.sourceforge.net/sph...AudioTool.html).

Sphinx4 is a Java app, so I'm having JavaSound problems with microphone input in Linux. Windows, on the same apps, seems to work just peachy.
Reply With Quote
Old 16th September 2011, 22:04
philfrei philfrei is offline
Junior Member
Join Date: Aug 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default re: Java sound problem?

Thanks for giving the app a try! The popping does NOT sound right. I don't think it is your headphones.

You might find this discussion at java-gaming.org interesting, especially the contributions of nsigma. Neal has a lot of experience with Linux, and has been helping me trouble-shoot my app. I just have to find more time to write the next steps, which hasn't been for two very long weeks!!


My ongoing troubleshoot session with Neal is (will be) here:

When I hit something conclusive with Neal, I will come back to this thread and post what I've found.
Reply With Quote
Old 23rd September 2011, 01:02
philfrei philfrei is offline
Junior Member
Join Date: Aug 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

The popping seems to be a problem with "Java Sound Audio Engine".

I added a menu to allow users to pick a playback path. Even with Windows, the "Java Sound Audio Engine" is causing popping, but the "Direct" options work fine. I'm not going to try and debug the JSAE, as it is easy to avoid and higher performance "direct" path.

The fellow helping me troubleshoot the JTheremin on his Linux system said that selecting ALSA "direct" lines worked. He was also getting the clicking due to the program defaulting to the "Java Sound Audio Engine". Maybe you can get some improvements by making sure you aren't using this engine as part of your audio path.

Some interesting info on various sound cards & drivers:

If you are curious, you can run the Applet and press Option, it should display your playback options. Also, the incoming options (for sound capture) will be shown on the Java Console, as well all Ports. The routine which builds the menu options goes through ALL Java "Mixers" and either puts them in the menu option group or "rejects" them to the console.
Reply With Quote


java sound

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 18:58
Apache boot problem / GlusterFS loading stefanm Installation/Configuration 2 9th August 2011 15:25
JAVA problem: "How To Install Alfresco Community 3.3 On Ubuntu Server 10.04" make-fun HOWTO-Related Questions 3 7th August 2011 13:28
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 15:15
Problem with ALSA - Debian Etch. Bear Spirit Installation/Configuration 3 19th May 2007 15:37

All times are GMT +2. The time now is 23:20.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.