Path: utzoo!mnetor!uunet!husc6!mailrus!ames!pasteur!agate!gershwin.berkeley.edu!cswarren From: cswarren@gershwin.berkeley.edu (Warren Gish;133B Biochem;x3-9219) Newsgroups: comp.sys.mac.programmer Subject: Re: sndplay in MPW C Message-ID: <7435@agate.BERKELEY.EDU> Date: 6 Mar 88 21:55:41 GMT References: <8399@reed.UUCP> Sender: usenet@agate.BERKELEY.EDU Reply-To: cswarren@gershwin.berkeley.edu.UUCP (Warren Gish) Organization: University of California, Berkeley Lines: 32 In article <8399@reed.UUCP> max@reed.UUCP (David Fedchenko) writes: >... why can't I get the sndplay function to work in MPW C? >It claims that it can't find it in the libraries when linking, which >is further confused by the fact that I could get it to work in MPW >Pascal. Can somebody help? This is a bug in MPW C version 2.0.2. The bug fix was posted to comp.sys.mac about a month ago by Apple, but here goes again... The trap numbers were omitted from the Sound Manager function definitions in sound.h. The missing trap numbers, and their associated function names, are: SndDoCommand 0xA803 SndDoImmediate 0xA804 SndAddModifier 0xA802 SndNewChannel 0xA807 SndDisposeChannel 0xA801 SndPlay 0xA805 SndControl 0xA806 Just place the trap numbers after the "extern" attribute in each function prototype. (If this isn't clear, take a look at the functions listed in, e.g., Events.h). Warren Gish IS&T Biochemistry Bldg University of California Berkeley, CA 94720 cswarren@violet.berkeley.edu cswarren@ucbviole.bitnet