Aligning animation and songs
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