Ejemplo n.º 1
0
	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;
		
	}
Ejemplo n.º 2
0
	private float getFrameRate (Bink.BINKSUMMARY summary)
	{
		return (summary.FrameRate / (float)summary.FrameRateDiv);		
	}