Example #1
0
        /// <summary>
        /// Stops streaming depth data from this camera
        /// </summary>
        public void Stop()
        {
            int result = KinectNative.freenect_stop_depth(this.parentDevice.devicePointer);

            if (result != 0)
            {
                throw new Exception("Could not depth RGB stream. Error Code: " + result);
            }
            this.IsRunning = false;
        }
        /// <summary>
        /// Stops streaming depth data from this camera
        /// </summary>
        public void Stop()
        {
            if (this.IsRunning == false)
            {
                // Not running, nothing to do
                return;
            }

            // Stop camera
            int result = KinectNative.freenect_stop_depth(this.parentDevice.devicePointer);

            if (result != 0)
            {
                throw new Exception("Could not stop depth stream. Error Code: " + result);
            }
            this.IsRunning = false;
        }