void nuiAnimation::Stop() { if (!mUpdatingTime && IsPlaying()) { mCount = 1; CallOnFrame(); } InternalStop(); }
void Base::Stop(bool force) //------------------------- { if(!IsOpen()) return; if(IsPlaying()) { if(force) { InternalStopForce(); } else { InternalStop(); } m_RequestFlags.fetch_and(~RequestFlagRestart); m_Clock.SetResolution(0); m_IsPlaying = false; { Util::lock_guard<Util::mutex> lock(m_StreamPositionMutex); m_CurrentUpdateInterval = 0.0; m_StreamPositionRenderFrames = 0; m_StreamPositionOutputFrames = 0; } } }