Help with this JMF problem needed!



I try to capture sound from the microphone and transmit it using JMF.
But after I create a locator and try to create DataSource I get the
following error:

Audio not supported: interface TargetDataLine supporting format
PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian,
and buffers of 22050 to 22050 bytes

Audio not supported: interface TargetDataLine supporting format
PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian,
and buffers of 22050 to 22050 bytes

java.io.IOException: Cannot open audio device for input.
javax.media.NoDataSourceException: Error instantiating class:
com.sun.media.protocol.javasound.DataSource : java.io.IOException:
Cannot open audio device for input.

The javax.media.Format I have set to: AudioFormat.LINEAR, 8000.0F,
16bit, mono/stereo (both tried), little-endian, signed.
I can't find a solution. I have searched in Google but no results.
Please help. Thanx in advance.

.