<Sound Dev> Line unavailable exceptions still happening with openjdk when acquiring a sourcedataline

Paulo Levi i30817 at gmail.com
Wed Mar 24 09:28:16 PDT 2010

Doesn't appear to make a difference.
replaced the first lines by this:
        boolean failedSimpleGetLine = false;
        AudioFormat format = new AudioFormat(44100, 16, 2, true, false);
        SourceDataLine line = null;
//        DataLine.Info info = new DataLine.Info(SourceDataLine.class,
        try {
            line = (SourceDataLine) AudioSystem.getSourceDataLine(format);

It still fails at the last line (reaches the last line).
To clarify the bugs:
1) first it gives a sourcedataline that says it obeys the format, without
throwing lineunavailableexception
2) first bug : then it throws lineunavailableexception when trying to open
3) second bug : however trying the sourcedatalines returned for all mixers
eventually finds a line that just works - if so why wasn't that the line

The saddest thing is that i have pulseaudio installed and a recent version
of openjdk installed. I assumed that was enough to get transparent mixing,
so i removed my special fork of freetts.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/sound-dev/attachments/20100324/620232d2/attachment.html 

More information about the sound-dev mailing list