I work with Jbuilder7 and I wanna capture live audio data from a microphone then
send it to my client...I 'm sure that my mic works but the following
code return null for "devicelist" ,I wanna know what is worng in this way and
what is the
best way for capturing live audio data from a mic,Can you help me??
Vector deviceList = CaptureDeviceManager.getDeviceList(new
AudioFormat(AudioFormat.LINEAR,22500,16,2));
if (deviceList.size() >0)
{
di = (CaptureDeviceInfo)deviceList.firstElement();
}
else{
System.out.println("No any Device");
}