Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!sunybcs!bingvaxu!leah!itsgw!batcomputer!eacj From: eacj@batcomputer.tn.cornell.edu (Julian Vrieslander) Newsgroups: comp.sys.mac Subject: Re: Digitized Sound Problems Message-ID: <2952@batcomputer.tn.cornell.edu> Date: Tue, 17-Nov-87 23:33:42 EST Article-I.D.: batcompu.2952 Posted: Tue Nov 17 23:33:42 1987 Date-Received: Fri, 20-Nov-87 21:19:17 EST References: <4Vc96ly00XcPN3o0OS@andrew.cmu.edu> Reply-To: eacj@tcgould.tn.cornell.edu (Julian Vrieslander) Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 21 In article <4Vc96ly00XcPN3o0OS@andrew.cmu.edu> rj0z+@andrew.cmu.edu (Robert George Johnston, Jr.) writes: > > This is true, but I have two problems. The first, and most annoying >problem that I have encountered is that the source code does not do a "back >door" trick on the Sound Manager to elliminate the annoying click that is >produced with every call to StartSound. One way to avoid clicks is to allocate your samples in integral multiples of 370 (or maybe 740, I forget which). Pad the sample block with bytes set to 80 (hex). That's the sample value for zero amplitude. The number 740 comes from the size of the RAM buffer in high memory used by the Sound Driver and Disk Driver (alternate bytes are used for the sound samples and disk drive motor speed values). So what's a "back door" trick? -- Julian Vrieslander (607) 255-3594 Neurobiology & Behavior, W250 Mudd Hall, Cornell University, Ithaca NY 14853 UUCP: {cmcl2,decvax,rochester,uw-beaver,ihnp4}!cornell!batcomputer!eacj ARPA: eacj@tcgould.tn.cornell.edu BITNET: eacj@CRNLTHRY