Click here to Skip to main content
15,910,009 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Does anyone know why waveInGetNumDev function in winmm.dll returning 0 in windows 7 but returns 1 in Windows XP
Posted

Someone else[^] had this problem. It was out dated drivers that caused the problems that time. Maybe you have similar problems?
 
Share this answer
 
I ran into this recently, for those that may be looking into this. I found that in Windows 7, the driver was configured to not be able to capture internal audio streams, as a consequence, this call returns zero and GetLastError() also returns zero. In order to get around the issue, you have to enable the function within the driver software, although it may be a bit hidden (on purpose I think).

I would write out an explanation on how to do it, but it's driver specific, meaning each manufacturer will probably place the control in a different location, I tried this on two different Win7 machines, one had the issue, which was fixed by enabling the function on the driver and the second laptop already had the function enabled by default.

I've read in some places that the default Win7 drivers won't let you change this setting, so make sure you have the manufacturer driver and controller. Otherwise, to get around the limitation, you can use an external audio cable to plug the output of your soundcard back into the mic-in.
 
Share this answer
 
Win7 checks is microphone plugged and if it's not you can't record. So the simplest solution to try, at least for me was to connect microphone.

old question but maybe someone still has a similar problem
good luck
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900