Article View: comp.sys.amiga.tech
Article #12314Re: SetFunction
From: Jim Mackraz
Date: Sat, 22 Apr 1989 01:42
Date: Sat, 22 Apr 1989 01:42
28 lines
1616 bytes
1616 bytes
In article <DEVEN.89Apr5081411@daniel.pawl.rpi.edu> deven@pawl.rpi.edu (Deven Corzine) writes:
) So, it seems your function call should be:
)
) OldDisplayBeep=SetFunction(IntuitionBase,0x60L,MyFunction);
I don't know if 0x60 is correct either, but I think you can use
LVODisplayBeep. Just declare it as, hmm, what would that be?
Maybe int LVODisplayBeep[];
or int LVODisplayBeep; then use &LVODisplayBeep.
Anyway, just suppose it's 0x60 ...
What I wanted to say was that the little function you replace DisplayBeep
with had better be reentrant, because people call this sucker a whole lot.
It would also be nice if it didn't run synchronously (which might lead you
to THINK it's reentrant), so that people don't have to wait for you to
be done beeping 100 times if they hold down a repeating key in a string
gadget or something.
I guess I just wanted to comment that beeping is harder than one (I) might
think.
jimm
--
Jim Mackraz, I and I Computing "He's hidden now, but you can see
{cbmvax,well,oliveb}!amiga!jimm The bubbles where he breathes."
- Shriekback
Opinions are my own. Comments are not to be taken as Commodore official policy.
Technical Details
Message-ID:
<3767@amiga.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!oliveb!amiga!jimmReferences:
<518@hvrunix.UUCP> <DEVEN.89Apr5081411@daniel.pawl.rpi.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!oliveb!amiga!jimm From: jimm@amiga.UUCP (Jim Mackraz) Newsgroups: comp.sys.amiga.tech Subject: Re: SetFunction Message-ID: <3767@amiga.UUCP> Date: 22 Apr 89 01:42:32 GMT References: <518@hvrunix.UUCP> <DEVEN.89Apr5081411@daniel.pawl.rpi.edu> Reply-To: jimm@cloyd.UUCP (Jim Mackraz) Organization: Commodore-Amiga Inc, Los Gatos CA Lines: 28