| 3871 | } |
| 3872 | |
| 3873 | XN_C_API XnStatus xnSetPlayerSource(XnNodeHandle hPlayer, XnRecordMedium sourceType, const XnChar* strSource) |
| 3874 | { |
| 3875 | XN_VALIDATE_INPUT_PTR(hPlayer); |
| 3876 | XN_VALIDATE_INPUT_PTR(strSource); |
| 3877 | XN_VALIDATE_INTERFACE_TYPE(hPlayer, XN_NODE_TYPE_PLAYER); |
| 3878 | XN_VALIDATE_CHANGES_ALLOWED(hPlayer); |
| 3879 | //Get player impl object |
| 3880 | xn::PlayerImpl *pPlayerImpl = dynamic_cast<xn::PlayerImpl*>(hPlayer->pPrivateData); |
| 3881 | XN_VALIDATE_PTR(pPlayerImpl, XN_STATUS_ERROR); |
| 3882 | XnStatus nRetVal = pPlayerImpl->SetSource(sourceType, strSource); |
| 3883 | XN_IS_STATUS_OK(nRetVal); |
| 3884 | return XN_STATUS_OK; |
| 3885 | } |
| 3886 | |
| 3887 | XN_C_API XnStatus xnPlayerReadNext(XnNodeHandle hPlayer) |
| 3888 | { |
no test coverage detected