private uint getTargetFrame (Bink.BINKSUMMARY summary) { uint result = (uint)(this.MovieTime * this.getFrameRate (summary)); if (this.LoopMovie) { result %= summary.TotalFrames; } else if (result > summary.TotalFrames) { result = summary.TotalFrames; } return result; }
private float getFrameRate (Bink.BINKSUMMARY summary) { return (summary.FrameRate / (float)summary.FrameRateDiv); }