Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I don't know how to get the device-ID of the microphone or the line-in. I'm doing something for a guitar player/singer, they need to play the guitar and sing at the same time.
Posted
Updated 30-May-10 0:23am
v2

Use WaveInGetNumDevs[^] to get the number of devices - ID's are 0 to WaveInGetNumDevs -1.

To get information about the device use WaveInGetDevCaps[^] and examine the WAVEINCAPS[^] in pwic.
 
Share this answer
 
Comments
Darkcharm 30-May-10 15:43pm    
Hi,DaveyM69,thanks for your answer ! But ,another question ,if I can think the devices means the mic-in and the line-in but not the soundcard ?
Darkcharm 30-May-10 15:58pm    
Reason for my vote of 5
Then,if i can think the devices means the micphone or the line-in but not the soundcard ?
DaveyM69 31-May-10 4:24am    
WaveInGetNumDevs gets all audio inputs on the system. If you have multiple soundcards then all the inputs are added together. To determine which is which you need to examine their capabilities.
Microphone and line in are part of a soundcard, they are not separate.
Darkcharm 31-May-10 8:50am    
Oh,I must say thanks for you,DaveyM69.
xp,vista,win7 .WaveIn ,DSound ,DirectKS,CoreAudio ,Oh ,GOD! MS aways has the power to make things to be terrible!
I give up !
WaveIn Functions are not what I need !

Go to have a death ,MS!
 
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