Tuesday, May 13, 2014

AudioSystem can't find any Mixers
































I've moved working code over to a different computer, a 32 bit Dell PC running Win7 under Netbeans and Java 8. I can't get it to play or synthesize any sounds because it can't get any Mixers. I tried adding the standard provider entries to the sound.properties file (they aren't needed in my other computer, but I had to try), and it made no difference. I've tracked down the problem farther by getting the source code for these classes and stepping through. The system seems to have the Mixer providers, but































in java.util.ServiceLoader.LazyIterator$nextService() it is looping through a set of javax.sound.sampled.spi.MixerProviders and it hits the following error:































try {































S p = service.cast(c.newInstance());































providers.put(cn, p);































return p;































} catch (Throwable x) {































fail(service,































"Provider " + cn + " could not be instantiated",































x);































}































Any suggestions why this is happening? I can't find anyone else in the world that has had this problem!































































No comments:

Post a Comment