/// <summary> /// Stops streaming video data from this camera /// </summary> public void Stop() { int result = KinectNative.freenect_stop_video(this.parentDevice.devicePointer); if (result != 0) { throw new Exception("Could not stop video stream. Error Code: " + result); } this.IsRunning = false; }
/// <summary> /// Stops streaming video 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_video(this.parentDevice.devicePointer); if (result != 0) { throw new Exception("Could not stop video stream. Error Code: " + result); } this.IsRunning = false; }