[comp.sys.mac] VBL tasks and LSC

johnson@su-russell.ARPA (Mark Johnson) (07/20/87)

**

Thanks to all of you who suggested looking at TN 19 for avoiding
clicks in sound generation, and those of you who warned that
following out the instructions of TN 19 might not be so easy using
LSC.

Very true.  The machine consistently bombed whenever I put any
LSC function on to the vertical retrace task queue.  After some
experimentation, I found the following declaration in MacTypes.h

typedef int (*ProcPtr)() ;

Is this right?  Surely a procedure should return nothing, rather than an int?
Replace this with

typedef void (*ProcPtr)() ;

the bomb disappears and I get clear, clickless sounds!

Is this a bug?

Mark

Mark Johnson, CSLI and Dept. of Linguistics, Stanford University.