| 192 | } |
| 193 | |
| 194 | XnStatus PlayerImpl::EnumerateNodes(XnNodeInfoList** ppList) |
| 195 | { |
| 196 | XnStatus nRetVal = XN_STATUS_OK; |
| 197 | |
| 198 | nRetVal = xnNodeInfoListAllocate(ppList); |
| 199 | XN_IS_STATUS_OK(nRetVal); |
| 200 | |
| 201 | for (PlayedNodesHash::Iterator it = m_playedNodes.Begin(); it != m_playedNodes.End(); ++it) |
| 202 | { |
| 203 | XnNodeInfo* pNodeInfo = xnGetNodeInfo(it->Value().hNode); |
| 204 | |
| 205 | nRetVal = xnNodeInfoListAddNode(*ppList, pNodeInfo); |
| 206 | if (nRetVal != XN_STATUS_OK) |
| 207 | { |
| 208 | xnNodeInfoListFree(*ppList); |
| 209 | return (nRetVal); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | return (XN_STATUS_OK); |
| 214 | } |
| 215 | |
| 216 | XnStatus PlayerImpl::SetPlaybackSpeed(XnDouble dSpeed) |
| 217 | { |
no test coverage detected