/* For simplicity, the audio data format used for recording
is hardcoded here. We use PCM 44.1 kHz, 16 bit signed,
stereo.
*/
AudioFormat audioFormat = new AudioFormat(
AudioFormat.Encoding.PCM_SIGNED,
44100.0F, 16, 2, 4, 44100.0F, false);
/* Now, we are trying to get a TargetDataLine. The
TargetDataLine is used later to read audio data from it.