コード例 #1
0
 private void Init(string clientName)
 {
     cbManager = new UnmanagedCallbackManager();
     loop      = new GLibMainLoop();
     GC.SuppressFinalize(loop);
     context  = new HandleRef(this, pa_context_new(loop.GetAPI(), clientName));
     notifyCB = ContextNotifyHandler;
     pa_context_set_state_callback(context, notifyCB, new IntPtr(0));
     eventCB = SubscriptionEventHandler;
     pa_context_set_subscribe_callback(context, eventCB, IntPtr.Zero);
 }