🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #17497

VBL tasks and LSC

#17497
From: Mark Johnson
Date: Mon, 20 Jul 1987 17:02
25 lines
1302 bytes
**

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.
Technical Details
Message-ID: <325@su-russell.ARPA>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!ll-xn!rutgers.rutgers.edu!labrea!su-russell!johnson

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!ll-xn!rutgers.rutgers.edu!labrea!su-russell!johnson
From: johnson@su-russell.ARPA (Mark Johnson)
Newsgroups: comp.sys.mac
Subject: VBL tasks and LSC
Message-ID: <325@su-russell.ARPA>
Date: Mon, 20-Jul-87 13:02:46 EDT
Article-I.D.: su-russe.325
Posted: Mon Jul 20 13:02:46 1987
Date-Received: Tue, 21-Jul-87 05:11:54 EDT
Reply-To: johnson@csli.stanford.edu (Mark Johnson)
Organization: Stanford University, CSLI
Lines: 25
Summary: Should ProcPtr be typedefed as int (*ProcPtr)() ??