home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.mac.programmer:22308 comp.multimedia:4256
- Newsgroups: comp.sys.mac.programmer,comp.multimedia
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!howland.reston.ans.net!bogus.sura.net!udel!intercon!psinntp!sunic!dkuug!daimi!olevi
- From: olevi@daimi.aau.dk (Ole Villumsen)
- Subject: Q: QuickTime: Timed call back(-s not?)
- Message-ID: <1993Jan27.141921.15976@daimi.aau.dk>
- Keywords: callback movie time NewCallBack CallMeWhen
- Sender: olevi@daimi.aau.dk (Ole Villumsen)
- Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
- Date: Wed, 27 Jan 93 14:19:21 GMT
- Lines: 38
-
- Hi programmers using QuickTime,
-
- Can you help me with this question: How do you invoke a timed call back more
- than once?
-
- I had no problem having the call back be invoked using the GetMovieTimeBase,
- NewCallBack and CallMeWhen functions in the movie toolbox. But if I'm playing
- the movie several times, I'd like to see the call back each time a certain
- point in time is reached. This doesn't just happen, since "The Movie Toolbox
- calls this function (CancelCallBack! /Ole) automatically when it invokes your
- callback function." (QuickTime 1.5 Developer Kit page 2-331.)
-
- I thought I was smart: I called CallMeWhen again from inside my callback
- function. This caused an infinite loop! It seems that after the call back has
- returned, the movie toolbox looks to see if there's more to be done at this
- point, and then immediately calls my callback function again. And so on
- forever.
-
- Anyone else experienced this behaviour? Any suggestions? I'd appreciate your
- input. Hasn't Apple thought about repeated invocation of a timed call back?
-
- With a callMeAtRate type call back it does work to call CallMeWhen again from
- within the callback function. But as I said, not with a callMeAtTime type call
- back.
-
- The funny thing is, when using the HyperCard-QuickTime XCMDs it seems that a
- timed call back is automatically invoked repeatedly if the movie is played
- again.
-
- I am using the programming language Beta on a Quadra 900 with QuickTime 1.5.
-
- Please email any responses or comments, and I'll summarize. Thanks in advance.
-
- Ole
-
- ----------------------------------------------------------------------
- Ole Villumsen, Computer Science Department, Aarhus University, Denmark
- ovillumsen@daimi.aau.dk Trade, not aid
-