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

Method SetPlaybackSpeed

Source/OpenNI/XnPlayerImpl.cpp:216–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216XnStatus PlayerImpl::SetPlaybackSpeed(XnDouble dSpeed)
217{
218 // do that in a lock (other thread might be in the middle of playback/seek)
219 XnAutoCSLocker locker(m_hPlaybackLock);
220
221 if (dSpeed < 0)
222 {
223 return XN_STATUS_BAD_PARAM;
224 }
225
226 m_dPlaybackSpeed = dSpeed;
227
228 return XN_STATUS_OK;
229}
230
231XnDouble PlayerImpl::GetPlaybackSpeed()
232{

Callers 3

xnSetPlaybackSpeedFunction · 0.45
mainFunction · 0.45
setPlaybackSpeedFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected