• 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
Aligning animation and songs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Aligning animation and songs


  • Subject: Aligning animation and songs
  • From: Lorenzo <email@hidden>
  • Date: Mon, 25 Oct 2004 23:59:55 +0200

Hi,
I am setting an animation which plays 2 QT song-files and I am asking to
myself which should give me the main playback-time: the songs? The
animation? Or a timer in a loop returning the current time?

The animation begins at 0:00 seconds.
The first song begins at the second 10:00th.
The second song begins at the second 20:00th, thus they play together.

Actually I make a loop and get the current time with

gettimeofday(&currTime, NULL);

With this time I can quite set my animation frame by frame.
Then when the time is => than 10:00 second I let the first song play and I
forget about it.
Then when the time is => than 20:00 second I let the second song play and I
forget about it.
Is this correct? Will the songs be always aligned with the system time (thus
with my animation) on any Mac machine?


Best Regards
--
Lorenzo
email: email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Aligning animation and songs
      • From: John Stiles <email@hidden>
  • Prev by Date: Associating object with NSPopupMenu items
  • Next by Date: Re: Associating object with NSPopupMenu items
  • Previous by thread: Re: Associating object with NSPopupMenu items
  • Next by thread: Re: Aligning animation and songs
  • Index(es):
    • Date
    • Thread