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

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

From: Ian Mann <i.mann@...>
Date: Fri, 21 Jun 2002 06:54:52 +0100
Peter Bancroft wrote:

> >If it were possible to sound
> >the music synchronously rather than asynchronously, then I would have no
> >problem. However, FB^3 apparently plays all music asynchronously via the
> >Sound Manager. Therefore, the entire melody string is read and supplied to
> >the sound queue while the first note is just sounding.
> >
> >Richard
>
> What have you tried synchronously? I was playing around with this some time
> ago, and from memory it looked like it could be done. Maybe if you give me
> some idea of where the problem is with synchronous sound, I can nut it out.
>
> '___________________________________________________________________________
>
> ' FUNCTION SndStartFilePlay (chan: SndChannelPtr; fRefNum: Integer;
> ' resNum: Integer; bufferSize: LongInt; theBuffer: Ptr;
> ' theSelection: AudioSelectionPtr; theCompletion: ProcPtr;
> ' async: Boolean): OSErr
> ' Ref IM : Sound p1-26, p1-36
>

I believe that SndStartFilePlay and SndStopFilePlay have been canned in carbon.
To keep going you will need to develop QuickTime work rounds.

Regards

Ian