Example #1
0
        public void RegisterCaptureCallback(CaptureCallback cb)
        {
            if (cb == null)
            {
                mNativeCaptureCallback = null;
                mCaptureCallback       = null;
                WasapiIO_RegisterCaptureCallback(mId, null);
                return;
            }

            mNativeCaptureCallback = new NativeCaptureCallback(NativeCaptureCallbackImpl);
            mCaptureCallback       = cb;
            WasapiIO_RegisterCaptureCallback(mId, mNativeCaptureCallback);
        }
Example #2
0
 public void Term()
 {
     WasapiIO_Term(mId);
     mNativeCaptureCallback = null;
     mCaptureCallback       = null;
 }
Example #3
0
 private static extern void WasapiIO_RegisterCaptureCallback(int instanceId, NativeCaptureCallback callback);
 private static extern void WasapiIO_RegisterCaptureCallback(int instanceId, NativeCaptureCallback callback);
 public void Term()
 {
     WasapiIO_Term(mId);
     mNativeCaptureCallback = null;
     mCaptureCallback = null;
 }
        public void RegisterCaptureCallback(CaptureCallback cb)
        {
            if (cb == null) {
                mNativeCaptureCallback = null;
                mCaptureCallback = null;
                WasapiIO_RegisterCaptureCallback(mId, null);
                return;
            }

            mNativeCaptureCallback = new NativeCaptureCallback(NativeCaptureCallbackImpl);
            mCaptureCallback = cb;
            WasapiIO_RegisterCaptureCallback(mId, mNativeCaptureCallback);
        }