I'm using the Minim library to take input from a PC Mic. Using the standard V1.5.1 Minim GetlineIn example, I'm getting this error on the debug output screen.
==== JavaSound Minim Error ==== ==== Error acquiring TargetDataLine: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
And it doesn't register any sound.
I've tried with 2 mics on my Windows XP HP desktop PC: An analogue one (Realtec AC97 Audio card), and a Digital one (Logitec USB Headset). In each case I've used Control Panel - Sounds - Voice - Test Hardware to check they're working OK and are the default input channel. Both give exactly the same result.
So also does a completely different old Dell laptop PC running Processing 1.5.1 on Windows 2000 (I know it's not supported, but yes, it works) with an analog sound card.
Funny thing is yesterday I had the this example (and other code) working correctly on the same HP desktop and the same digital mic. But since I've rebooted the PC I continually see the error above.
Oh - pretty simple really. Misleading error message. What it meant was it couldn't open the port (not that JavaSound couldn't support the format). It appears my PC sound input circuitry is clever enough to know nothing's plugged in to a port, and the device driver refuses to open it.
It turns out in Windows XP you use Control Panel - Sounds - Audio to set Java's default input channel. (And NOT Control Panel - Sounds - Voice as I was doing).
Hope this helps someone in future...
Leave a comment on cafaweir's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic