コード例 #1
0
        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));
        }
コード例 #2
0
ファイル: WasapiCS.cs プロジェクト: uzyura/bitspersampleconv2
 WasapiIO_InspectDevice(int instanceId, int deviceId, ref InspectArgs args);
コード例 #3
0
 private static extern int WasapiIO_InspectDevice(int instanceId, int deviceId, ref InspectArgs args);
コード例 #4
0
 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);
 }