I've found this information on SO about how to enumerate the sound device info on with .NET, but I don't really know how to use this information with Python. As you can probably tell, I have almost zero experience with Windows API programming.
I can figure out how to get basic information via WMI, but I need more information, and it looks like maybe the following C# code snippet is what I need, but I just don't know how to access DirectSound objects from Python. I've figured out some basic stuff with ctypes, but I don't know which or how to load the DirectX .dll...
DevicesCollection devColl = new DevicesCollection();
foreach (DeviceInformation devInfo in devColl)
{
Device dev = new Device(devInfo.DriverGuid);
//use dev.Caps, devInfo to access a fair bit of info about the sound device
}
Any pointers?