Exemplo n.º 1
0
        public KxStream()
        {
            KxBuffer.StartBuffer();

            lock (KxBuffer.instance.depthFrameReady)
                KxBuffer.instance.depthFrameReady.Add(this.depthFrameReady);
            lock (KxBuffer.instance.yuvFrameReady)
                KxBuffer.instance.yuvFrameReady.Add(this.yuvFrameReady);
            lock (KxBuffer.instance.rgbFrameReady)
                KxBuffer.instance.rgbFrameReady.Add(this.rgbFrameReady);
            lock (KxBuffer.instance.audioFrameReady)
                KxBuffer.instance.audioFrameReady.Add(this.audioFrameReady);
            lock (KxBuffer.instance.audioFrameQueues)
                KxBuffer.instance.audioFrameQueues.Add(this.audioFrameQueue);
        }