• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: QTTime time reolution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: QTTime time reolution
  • Next by Date: NSTableView searching and predicates
  • Previous by thread: QTTime time reolution
  • Next by thread: NSTableView searching and predicates
  • Index(es):
    • Date
    • Thread