Results 1 to 3 of 3
  1. #1
    Join Date
    May 2014
    Posts
    4
    Rep Power
    0

    Default 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!

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default Re: AudioSystem can't find any Mixers

    What's the full stack trace and exception text for the error?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    Join Date
    May 2014
    Posts
    4
    Rep Power
    0

    Default Re: AudioSystem can't find any Mixers

    Quote Originally Posted by Tolls View Post
    What's the full stack trace and exception text for the error?
    Thanks for the help. I tried simply reinstalling the JDK 8 and that fixed it. It was a very recent install, so I don't know why it fixed it, but if anyone else has this, try a reinstall.

Similar Threads

  1. Problem with mixers
    By sana'a in forum Advanced Java
    Replies: 12
    Last Post: 05-13-2014, 08:59 PM
  2. Audiosystem.write not returning?
    By B_Tank88 in forum New To Java
    Replies: 0
    Last Post: 01-31-2012, 01:06 PM
  3. Accessing AudioSystem getMixerInfo()??
    By Jlister76 in forum New To Java
    Replies: 6
    Last Post: 02-25-2011, 12:04 PM
  4. Replies: 3
    Last Post: 03-03-2010, 09:51 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •