On Fri, 11 Feb 2000, Richard Gaskin wrote:

> Anyone have a handy pair of handlers for translating between frames and time
> codes and vice versa?  I've started a pair here, but while I'm working out
> the bugs I figured it was probably not a good use of time to reinvent a
> popular wheel.
> 
> Scott:  Do you plan to include such handlers in the docs for the final 2.3
> version?

I don't think it's even possible to do this in general because
inter-frame rates don't have to be a constant.  The engine calls the
QuickTime function GetMovieNextInterestingTime() to determine when the
screen needs to be updated.  If you know the frame rate and that it is
constant, the math to convert from a time to a frame is pretty trivial
(e.g.: currentTime / timeScale * <frame rate>)
  Regards,
    Scott

> -- 
>  Richard Gaskin 
>  Fourth World
>  Multimedia Design and Development for Mac, Windows, UNIX, and the Web
>  _____________________________________________________________________
>  [EMAIL PROTECTED]                 http://www.FourthWorld.com
>  Tel: 323-225-3717           ICQ#60248349            Fax: 323-225-0716
> 
> 
> This is the MetaCard mailing list.
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> 

********************************************************
Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...


This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm

Reply via email to