/** * Constructors * ===================================================================== */ /// <summary> /// /// </summary> /// <param name="platformHandle"></param> public RenderSupport(IntPtr platformHandle) { _pendingCalls = new Dictionary<int, PendingCall>(); _renderResponder = new adl_int_rclbck_t(renderResponder); _callIdGenerator = 0; _platformHandle = platformHandle; _activeRenderers = new Dictionary<int, WeakReference>(); }
/** * Constructors * ===================================================================== */ /// <summary> /// /// </summary> /// <param name="platformHandle"></param> public RenderSupport(IntPtr platformHandle) { _pendingCalls = new Dictionary <int, PendingCall>(); _renderResponder = new adl_int_rclbck_t(renderResponder); _callIdGenerator = 0; _platformHandle = platformHandle; _activeRenderers = new Dictionary <int, WeakReference>(); }
/** * Constructors * ===================================================================== */ /// <summary> /// Basic constructor. /// </summary> /// <param name="platformHnandle"> /// handle for the platform that should be used when performing API /// calls. /// </param> public CloudeoServiceImpl(IntPtr platformHandle) { // 1. Initialize all fields. _platformHandle = platformHandle; _respondersDictionary = new Dictionary <uint, object>(); _listeners = new List <NativeServiceListenerAdapter>(); _callIdGenerator = 0; _renderSupport = new RenderSupport(platformHandle); // 2. Create all the result delegates. _voidRCallback = new adl_void_rclbck_t(voidRCallback); _stringRCallback = new adl_string_rclbck_t(stringRCallback); _intRCallback = new adl_int_rclbck_t(intRCallback); _devsRCallback = new adl_get_device_names_rclbck_t(devsRCallback); _screenSourceRCallback = new adl_get_screen_capture_srcs_rclbck_t(screenCaptureSourcesRClbck); }
public static extern void adl_render_sink(adl_int_rclbck_t rclbck, ADLH handle, IntPtr opaque, ref ADLRenderRequest request);
public static extern void adl_get_volume( adl_int_rclbck_t rclbck, ADLH handle, IntPtr opaque);