// Stops the acquisition of the depth stream. func (camera *DepthCamera) Stop() int { if camera.on == false { return 1 } C.freenect_stop_depth(camera.device.dev) fmt.Printf("Depth stream stopped\n") return 0 }
// StopDepthStream stops the retrieval of depth information from the device. func (device *Device) StopDepthStream() error { errCode := C.freenect_stop_depth(device.device) if errCode != 0 { return errors.New("could not stop depth stream") } return nil }
//FREENECTAPI int freenect_stop_depth(freenect_device *dev); func (dev *Device) StopDepth() int { return int(C.freenect_stop_depth(dev.ptr())) }