示例#1
0
 public void BufferedReadNotifyPipe(byte pipeId, NewDataCallback callback)
 {
     if (!bufferedPipes.ContainsKey(pipeId))
     {
         throw new Exception("Pipe not enabled for buffered reads!");
     }
     bufferedPipes[pipeId].NewDataEvent += callback;
 }
示例#2
0
 internal static extern NNStreamerError RegisterSinkCallback(IntPtr pipeline_handle, string sink_name, NewDataCallback callback, IntPtr user_data, out IntPtr sink_handle);
示例#3
0
 public void BufferedReadNotifyPipe(byte pipeId, NewDataCallback callback)
 {
     if (!bufferedPipes.ContainsKey(pipeId))
     {
         throw new Exception("Pipe not enabled for buffered reads!");
     }
     bufferedPipes[pipeId].NewDataEvent += callback;
 }