Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!uvaarpa!babbage!watt.acc.Virginia.EDU!pts From: pts@watt.acc.Virginia.EDU (Paul T. Shannon) Newsgroups: comp.sys.mac.hypercard Subject: SysBeep in an xcmd Message-ID: <887@babbage.acc.virginia.edu> Date: 3 Sep 89 17:49:04 GMT Sender: acc@babbage.acc.virginia.edu Reply-To: pts@watt.acc.Virginia.EDU (Paul T. Shannon) Distribution: usa Organization: Academic Computing Center, University of Va. Lines: 16 I've just written my first xcmd, in Lightspeed C, for HyperCard. The program is as simple as possible: it consists of only two lines: SysBeep (48); SysBeep (48); When I compile this program, and run it as a normal Mac application, it behaves as you (and IM) expect: two beeps that last on the order of a second each. When I compile the program as a code resource (called 'myBeep'), use resedit to copy it to a simle HyperCard Stack, and run it from a HyperCard button script, I hear the two beeps as expected, but both are very short. It's as if the duration parameter (48) is completely lost. Does anyone know what's going on here? - Paul Shannon pts@virginia.edu