MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / xnXmlReadWaveOutputMode

Function xnXmlReadWaveOutputMode

Source/OpenNI/XnXmlScriptNode.cpp:50–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50XnStatus xnXmlReadWaveOutputMode(const TiXmlElement* pOpcode, XnWaveOutputMode* pWaveOutputMode)
51{
52 XnStatus nRetVal = XN_STATUS_OK;
53
54 nRetVal = xnXmlReadUInt32Attribute(pOpcode, "sampleRate", &pWaveOutputMode->nSampleRate);
55 XN_IS_STATUS_OK(nRetVal);
56
57 nRetVal = xnXmlReadUInt16Attribute(pOpcode, "bitsPerSample", &pWaveOutputMode->nBitsPerSample);
58 XN_IS_STATUS_OK(nRetVal);
59
60 nRetVal = xnXmlReadUInt8Attribute(pOpcode, "channels", &pWaveOutputMode->nChannels);
61 XN_IS_STATUS_OK(nRetVal);
62
63 return (XN_STATUS_OK);
64}
65
66XnStatus xnXmlReadCropping(const TiXmlElement* pOpcode, XnCropping* pCropping)
67{

Callers 1

Calls 3

xnXmlReadUInt32AttributeFunction · 0.85
xnXmlReadUInt16AttributeFunction · 0.85
xnXmlReadUInt8AttributeFunction · 0.85

Tested by

no test coverage detected