As far as I know, it is reproducible only with Linux if the webcam is plugged before booting. It would be fine if you could confirm that “my” fix is useless with Windows and a webcam.
Maybe a cleaner solution would consist in calling getTargetLineInfo, checking if any Line.Info is an instance of Port.Info and then checking if there is at least one valid target port. I will check it at home later.
[quote=“paulscode,post:22,topic:35502”]
It would be fine for the programmer not to have to choose manually the mixer when an audio format is not supported by Java Sound Audio Engine but it is supported by any direct audio device. Moreover, it is easier to associate a “score” to a mixer when you know which audio format you have to support.
Do you know JASS?
http://www.cs.ubc.ca/~kvdoel/jass/
Personally I will investigate a bit more and it is highly probable that I will write a bug report.
Edit.: my “fix” is not correct because the Java Sound Audio Engine has no target line info even though it works fine. I have to find something else.