Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!wras From: wras@walt.cc.utexas.edu (Steve Mariotti) Newsgroups: comp.sys.mac.programmer Subject: Synchronous sounds using the Sound Manager Summary: how? how? Keywords: Sound manager digitized sound Message-ID: <30976@ut-emx.UUCP> Date: 5 Jun 90 14:45:54 GMT References: <1990Jun4.020601.9644@msuinfo.cl.msu.edu> Sender: news@ut-emx.UUCP Reply-To: wras@walt.cc.utexas.edu (Steve Mariotti) Organization: The University of Texas at Austin, Austin, Texas Lines: 39 Hi. Has anyone had experience using the Sound Manager to play a 'snd ' resource synchronously (simultaneous with other processing)? I've been wracking my poor brain trying to do it every way possible with only spotty success. What I've been doing is opening my own SndChannel and using SndPlay to play previously loaded 'snd ' resources with it's async field set to FALSE. I've had every conceivable hang/crash/crater at various places. Let me be more specific. The way I understand it, you do: err = SndNewChannel(myChanPtr, sampledSynth, initMono, NULL); if (!err) { err = SndPlay(myChanPtr, soundHandle1, FALSE); err = SndPlay(myChanPtr, soundHandle2, FALSE); } and they play without pop/click etc. I considered also using SndDoCommand() to send it noteCommand's and soundCmd's when I want to change the sound it plays. I'm doing this in THINK C on a Mac SE with 4 megs of memory (if it matters), so I don't have the Apple Sound chip. I had a partial success with synchronous sound, but I can't duplicate it now. Thanks in advance for any suggestions. Steve ______ _____________________________________________________________________ | ____ | Steve Mariotti -- University of Texas at Austin -- CS Undergrad(e) | || || ---------------------------------------------------------------------| || || wras@ccwf.cc.utexas.edu | csar242@ix1.cc.utexas.edu | AOL:SteveM16 | | ---- | ---------------------------------------------------------------------| |. -- | "Wouldn't be prudent, not at this juncture." | |______| ---------------------------------------------------------------------' |______| function introspanish(time : longint) : pain;