Example #1
0
        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));
        }
Example #2
0
 private static extern void free_DoubleDataArray(DoubleDataArray doubleArray);