| 197 | } |
| 198 | |
| 199 | bool captureOpenWriteDevice() |
| 200 | { |
| 201 | XnStatus nRetVal = XN_STATUS_OK; |
| 202 | NodeInfoList recordersList; |
| 203 | nRetVal = g_Context.EnumerateProductionTrees(XN_NODE_TYPE_RECORDER, NULL, recordersList); |
| 204 | START_CAPTURE_CHECK_RC(nRetVal, "Enumerate recorders"); |
| 205 | // take first |
| 206 | NodeInfo chosen = *recordersList.Begin(); |
| 207 | |
| 208 | g_Capture.pRecorder = new Recorder; |
| 209 | nRetVal = g_Context.CreateProductionTree(chosen, *g_Capture.pRecorder); |
| 210 | START_CAPTURE_CHECK_RC(nRetVal, "Create recorder"); |
| 211 | |
| 212 | nRetVal = g_Capture.pRecorder->SetDestination(XN_RECORD_MEDIUM_FILE, g_Capture.csFileName); |
| 213 | START_CAPTURE_CHECK_RC(nRetVal, "Set output file"); |
| 214 | |
| 215 | return true; |
| 216 | } |
| 217 | |
| 218 | void captureBrowse(int) |
| 219 | { |
no test coverage detected