Hello,
I'm working on a Director plugin that plays tracks off of a CD. I'm a
bit stumped as to how to get it to play more than one track in sequence.
Here's what I'd *like* to do:
Set a callback to be triggered at the end of the track. This callback
would play the next track in the sequence.
Here's the problem:
The Director application needs to be able to call functions in my plugin
and then return to its business, which may include calling another
function. For this reason I can't just have the play function cycle
while it waits for the track to end -- that would cause the Director
application to get a spinning cursor until the whole process is done,
and I can't just handle events myself because those events should be
handled by the Director app.
So... the way my plugin works is, when called upon to play a track, it
starts the track and then returns. I think this explains why my callback
doesn't work -- my code isn't running anymore by the time the callback
would be triggered.
In case it isn't obvious, I'm fairly new to this kind of programming.
I'm a bit out of my depth. Can anyone suggest a route I might pursue to
get this functionality working? I'm not looking for specifics,
necessarily -- not at the code level anyway. Just a general approach to
the problem.
Thanks,
sp
>> Stay informed about: quicktime callbacks problem