As I've said this is the most tricky part. Windows allocates continuous range of IDs starting with 0.
Probably this is the order that is used in control panel, but I'm not sure. Also it seems that this order is preserved across reboots until hardware setup is changed. You can try the following simple program: #include <stdio.h> #include <windows.h> int main() { UINT i; WAVEOUTCAPS caps; for (i = 0; i < waveOutGetNumDevs(); i++) { waveOutGetDevCaps(i, &caps, sizeof(caps)); printf("%d: %s\n", i, caps.szPname); } return 0; } It will give you imagination how MPD sees your sound cards. If you can guess what is what after running it you are done. Otherwise you'll have to brute force those numbers by trying to play something via MPD with each possible device number. 10.05.2012 19:35, zw g написал: > Thank you very much, Denis. > You give me hope for this. > > I know it's stupid, but....may i ask how can i find out the device > number for each sound card? > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team