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