IllegalArgumentException: No line matching interface Clip supporting...

I logged this exception:

java.lang.IllegalArgumentException: No line matching interface Clip supporting format PCM_SIGNED 22000.0 Hz, 16 bit, mono, 2 bytes/frame,
little-endian, and buffers of 4610 to 4610 bytes is supported

that was on: Linux 2.6.32-22-generic java 1.6.0_18
Could it be that no sound card was available?
Do you think it is worth checking which formats are available? (and how do you do it?)

The interwebs say: http://www.jsresources.org/faq_audio.html#supported_formats


Line.Info[] infos = AudioSystem.getSourceLineInfo();
Line.Info[] infos = AudioSystem.getTargetLineInfo();
for (int i = 0; i < infos.length; i++)
{
  if (infos[i] instanceof DataLine.Info)
  {
    DataLine.Info dataLineInfo = (DataLine.Info) infos[i];
    AudioFormat[] supportedFormats = dataLineInfo.getFormats();
  }
}

I decided to just not care and disable sound if that exception occurs.

http://www.jsresources.org/apps/JSInfoApplet.html

Here I realized that 22050 is more common than 22000, I changed the frequency and hope it’ll help.