public static PaDeviceInfo Pa_GetDeviceInfo(int hostApi, int hostApiDeviceIndex) { int deviceIndex = NativeMethods.Pa_HostApiDeviceIndexToDeviceIndex(hostApi, hostApiDeviceIndex); PaDeviceInfo info = Pa_GetDeviceInfo(deviceIndex); return(info); }
// A valid device index in the range 0 to (Pa_GetDeviceCount()-1) public static PaDeviceInfo Pa_GetDeviceInfo(int device) { IntPtr ptr = NativeMethods.Pa_GetDeviceInfo(device); PaDeviceInfo info = (PaDeviceInfo)Marshal.PtrToStructure(ptr, typeof(PaDeviceInfo)); return(info); }