Exemple #1
0
 protected void OnIfDataRecieved(IfCallbackArgs ifData)
 {
     if (IfDataRecieved != null)
     {
         IfDataRecieved(this, ifData);
     }
 }
Exemple #2
0
        private void IfCallback(IntPtr buffer, uint numberOfSamples, ushort maxAdcAmplitude, uint adcSamplingRate,
                                uint userData)
        {
            var bytes  = numberOfSamples * 2;
            var data   = CopyArrayByte(buffer, bytes);
            var ifData = new IfCallbackArgs(maxAdcAmplitude, adcSamplingRate, data);

            OnIfDataRecieved(ifData);
        }