public int getNextFrame(long timeSinceStart)
	{
		long frameDec=timeSinceStart%this.totalTime;
		int i=0;
		for(;frameDec>this.timestamps[i];i++)
			frameDec-=this.timestamps[i];
		return frames[i];
	}