Author Topic: 3D Sound "No Useable mixers found!" Error  (Read 2084 times)

Offline amurray

  • bit
  • Posts: 1
    • View Profile
3D Sound "No Useable mixers found!" Error
« on: November 16, 2012, 10:21:17 AM »

I'm trying to get to get 3D sound working on a Gumstix overo running Angstrom Linux and I've run into some troubles. I've installed the JavaSound library plugin successfully (as far as I know, that is), but when I try to run a test script, it throws the following error:

Code: newbielink:javascript:void(0); [nonactive]
Starting up SoundSystem...
Initializing Java Sound
    (The Java Sound API.  For more information, see
        No useable mixers found!

My question is as follows: What is the nature of this error and is there anything I can do to fix it? It looks like it has as least as much to do with JavaSound as anything. A list of JavaSound approved mixers would be ideal, but I can't find one.

I have alsamixer installed on the machine, but it apparently JavaSound can't find it. I've gotten the same testcode working on another machine running OSX, so I am fairly sure that the code itself is not the problem. For the sake of completeness, here is the code:

Code: newbielink:javascript:void(0); [nonactive]
// Author: Paul Lamb (

import paulscode.sound.SoundSystem;
import paulscode.sound.SoundSystemConfig;
import paulscode.sound.SoundSystemException;
import paulscode.sound.codecs.CodecWav;
import paulscode.sound.libraries.LibraryJavaSound;
 *  Creates the SoundSystem, plays some music, then shuts down.
public class SoundSystemTest
    public static void main( String[] args )
        new SoundSystemTest();
    public SoundSystemTest()
    try {
    SoundSystemConfig.addLibrary( LibraryJavaSound.class );
SoundSystemConfig.setCodec( "wav", CodecWav.class );
} catch (SoundSystemException e1) {
// TODO Auto-generated catch block
        // Instantiate the SoundSystem:
        SoundSystem mySoundSystem = new SoundSystem();
        File musicFile = new File("/home/root/sound_test/bell.wav");
        URL beethovenURL = null;
        try {
beethovenURL = musicFile.toURI().toURL();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
        // Create a new ambient, looping source called "Cool Music":
        mySoundSystem.backgroundMusic("Cool Music", beethovenURL, "bell.wav", true);
        // Wait for 10 seconds:
        sleep( 10 );
        // Shut down:
** Remaining code identical to examples in 3D Sound documentation **


EDIT: Another random thought: Unforunately OpenAL is not an option due to memory restraints so switching to that library is not an option.

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: 3D Sound "No Useable mixers found!" Error
« Reply #1 on: November 16, 2012, 12:40:44 PM »
Unfortunately Oracle royally screwed Javasound by deciding to remove the built-in software mixer that many games and libraries depended on.  This resulted in relying on platform-dependent mixers which unfortunately do not all fit the assumptions I made when I wrote the JavaSound library plug-in (namely being able to open multiple lines simultaneously).  The only solution will be to write my own software mixer, which I haven't had the time to finish.  If you happen to know of an open-source (Java) software mixer that somebody else has written, let me know and I'll see about making a library plug-in for it.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted