MMRESULT WdmAudGetNumWdmDevsByMMixer( IN MMDEVICE_TYPE DeviceType, OUT DWORD* DeviceCount) { switch(DeviceType) { case MIXER_DEVICE_TYPE: *DeviceCount = MMixerGetCount(&MixerContext); break; case WAVE_OUT_DEVICE_TYPE: *DeviceCount = MMixerGetWaveOutCount(&MixerContext); break; case WAVE_IN_DEVICE_TYPE: *DeviceCount = MMixerGetWaveInCount(&MixerContext); break; default: *DeviceCount = 0; } return MMSYSERR_NOERROR; }
ULONG WdmAudGetWaveInDeviceCount() { return MMixerGetWaveInCount(&MixerContext); }