private void OnDoubleDataReceived(IntPtr devicePtr, ChannelInfo info, DoubleDataArray dataArray, IntPtr userData) { if (DevicePtr != devicePtr) { return; } var data = new NativeArrayMarshaler <double>().MarshalArray(dataArray.DoubleArray, dataArray.SamplesCount); free_DoubleDataArray(dataArray); DoubleChannelDataReceived?.Invoke(this, new ChannelData <double>(data, info)); }
private static extern void free_DoubleDataArray(DoubleDataArray doubleArray);