I'm trying to follow a tutorial (1) on getting and setting a sound card's
volume.
It uses a function in winmm.dll
[DllImport("winmm.dll")]
public static extern int waveOutGetVolume(IntPtr hwo, out uint
dwVolume);
It uses waveOutGetVolume later to find the volume of the device:
waveOutGetVolume(IntPtr.Zero, out CurrVol);
I assume this is really easy, but in my machine there are two soundcards
(one on the motherboard, the other is a USB headset), how do I modify which
sound card I'm dealing with in the above code?
I've found out how to get the number of sound cards using
waveOutGetNumDevs(), but haven't figured out how to get their names, how do
you do this?
Any help gratefully recieved.
1) http://www.geekpedia.com/tutorial176...nd-volume.html