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); }
public void Term() { WasapiIO_Term(mId); mNativeCaptureCallback = null; mCaptureCallback = null; }
private static extern void WasapiIO_RegisterCaptureCallback(int instanceId, NativeCaptureCallback callback);