Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!lsr From: lsr@Apple.com (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: Playing SND resources Message-ID: <11799@goofy.Apple.COM> Date: 22 Jan 91 03:16:24 GMT References: <0B010004.sef8uo@outpost.UUCP> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 14 In article <0B010004.sef8uo@outpost.UUCP>, peirce@outpost.UUCP (Michael Peirce) writes: > HLock(h); > stat := SndPlay(NIL,h,kSYNC); > HUnlock(h); I don't think you have to lock the snd resource if you are playing it synchronously. SndPlay will do that for you. You do have to lock it if you play it asynchronously, because the SndPlay call will usually return before the sound is finished. It doesn't hurt to play it safe, however. Larry