static void DoSmoothScroll(WindowState state) { if (state.playing) { state.SetPlayHeadToMiddle(); } state.UpdateLastFrameTime(); }