Hello all.
I'm back :-)
Two minor updates for winmm_output_plugin
1) test_default_device now checks number of playback devices installed
in system.
If no device is present it returns false.
2) added "device" configuration option (similar to other output devices).
Device can be specified either by name or by id.
Native API is stupid.
Device identifier is just a magic number (starting from 0).
You have to brute force to find out which id is for you.
Device name could be a solution, but it is truncated to 32 characters.
I've made some workarounds (see comments in code).
Finally, I've made a simple program (see attachment) that prints device
ids along
with device names. Probably it could be integrated in win32 distribution
of mpd.
--
Denis
#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;
}
------------------------------------------------------------------------------
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware,
phishing sites, and compromised hosts - saving your company time,
money, and embarrassment. Learn More!
http://p.sf.net/sfu/hpdev2dev-nov
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team