home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22308 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  2.3 KB

  1. Xref: sparky comp.sys.mac.programmer:22308 comp.multimedia:4256
  2. Newsgroups: comp.sys.mac.programmer,comp.multimedia
  3. 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
  4. From: olevi@daimi.aau.dk (Ole Villumsen)
  5. Subject: Q: QuickTime: Timed call back(-s not?)
  6. Message-ID: <1993Jan27.141921.15976@daimi.aau.dk>
  7. Keywords: callback movie time NewCallBack CallMeWhen
  8. Sender: olevi@daimi.aau.dk (Ole Villumsen)
  9. Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
  10. Date: Wed, 27 Jan 93 14:19:21 GMT
  11. Lines: 38
  12.  
  13. Hi programmers using QuickTime,
  14.  
  15. Can you help me with this question: How do you invoke a timed call back more
  16. than once?
  17.  
  18. I had no problem having the call back be invoked using the GetMovieTimeBase,
  19. NewCallBack and CallMeWhen functions in the movie toolbox. But if I'm playing
  20. the movie several times, I'd like to see the call back each time a certain
  21. point in time is reached. This doesn't just happen, since "The Movie Toolbox
  22. calls this function (CancelCallBack! /Ole) automatically when it invokes your
  23. callback function." (QuickTime 1.5 Developer Kit page 2-331.)
  24.  
  25. I thought I was smart: I called CallMeWhen again from inside my callback
  26. function. This caused an infinite loop! It seems that after the call back has
  27. returned, the movie toolbox looks to see if there's more to be done at this
  28. point, and then immediately calls my callback function again. And so on
  29. forever.
  30.  
  31. Anyone else experienced this behaviour? Any suggestions? I'd appreciate your
  32. input. Hasn't Apple thought about repeated invocation of a timed call back?
  33.  
  34. With a callMeAtRate type call back it does work to call CallMeWhen again from
  35. within the callback function. But as I said, not with a callMeAtTime type call
  36. back.
  37.  
  38. The funny thing is, when using the HyperCard-QuickTime XCMDs it seems that a
  39. timed call back is automatically invoked repeatedly if the movie is played
  40. again.
  41.  
  42. I am using the programming language Beta on a Quadra 900 with QuickTime 1.5.
  43.  
  44. Please email any responses or comments, and I'll summarize. Thanks in advance.
  45.  
  46. Ole
  47.  
  48. ----------------------------------------------------------------------
  49. Ole Villumsen, Computer Science Department, Aarhus University, Denmark
  50. ovillumsen@daimi.aau.dk                                 Trade, not aid
  51.