[futurebasic] Re: [FB] ON TIMER event handling

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2002 : Group Archive : Group : All Groups

From: Richard Goodman <bhomme@...>
Date: Thu, 27 Jun 2002 10:34:51 -0700
Alain wrote:

<<<<<I think you're right. Not only the Reference manual is wrong but it
seems that the statements are not even implemented.
I have understood maybe wrongly that your problem revolves around the
SndStartFilePlay function. You want to know when a sound has finished
to play.Is that right?

I'm not sure about this but there is an sync/async parameter in that
call, maybe setting this flag to false your program will be locked
until that time. Otherwise there is a completion procedure that can be
installed, I suppose the proc is called when the sound stops playing.
At last, perhaps you should consider installing a Time task as a
replacement for the TIMER thingy. Here is an example :
<Snip>

---------------
Alain:
Yes, I've just discovered that the Sound Manager has a parameter for
synchronous sound play. I plan to look into it.

Does the Time task code you provided only work with OS X, or can it be used
with earlier OSs?