Re: Aligning animation and songs
Re: Aligning animation and songs
- Subject: Re: Aligning animation and songs
- From: John Stiles <email@hidden>
- Date: Mon, 25 Oct 2004 15:43:45 -0700
Typically you want to cue the synchronization off of the audio. The
rationale is that you can slow down or speed up animation easily
(drop/skip frames) and if it's "close", things will look OK. But if you
try to vary the playback speed of the audio or change the sound
playback cursor, you'll introduce nasty hiccups/popping or pitch bends
that everyone will notice. In other words, it's harder to tweak the
audio rate in a subtle way that end users won't notice; it's a lot
easier to tweak the video to force it to line up with the
already-playing sound.
On Oct 25, 2004, at 2:59 PM, Lorenzo wrote:
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
_______________________________________________
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