public int InspectDevice(int deviceId, DeviceType dt, int sampleRate, SampleFormatType format, int numChannels, int dwChannelMask) { var args = new InspectArgs(); args.deviceType = (int)dt; args.sampleRate = sampleRate; args.numChannels = numChannels; args.sampleFormat = (int)format; args.dwChannelMask = dwChannelMask; return(WasapiIO_InspectDevice(mId, deviceId, ref args)); }
WasapiIO_InspectDevice(int instanceId, int deviceId, ref InspectArgs args);
private static extern int WasapiIO_InspectDevice(int instanceId, int deviceId, ref InspectArgs args);
public int InspectDevice(int deviceId, int sampleRate, SampleFormatType format, int numChannels) { var args = new InspectArgs(); args.sampleRate = sampleRate; args.numChannels = numChannels; args.sampleFormat = (int)format; return WasapiIO_InspectDevice(mId, deviceId, ref args); }