Re: QTTime time reolution
Re: QTTime time reolution
- Subject: Re: QTTime time reolution
- From: "Paolo Manna" <email@hidden>
- Date: Fri, 3 Aug 2007 13:59:28 +0100
> For example I want to specify 4.6 seconds in QTTime, but QTTime.timeValue is "long long"
> not float or double, so if I use QTTime q = QTMakeTime(4.6, 1)
That's what the second parameter stands for, the time scale (usually,
the numer of time units per second), while timeValue is subsequently
expressed in (long long)(seconds * timeScale). All the following are
specifying 4.6 seconds:
QTMakeTime(46, 10)
QTMakeTime(460, 100)
QTMakeTime(4600, 1000)
You may want to use the same timeScale of your movie though, to avoid
conversions.
Paolo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden