🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12326

Re: SetFunction

#12326
From: Deven T. Corzine
Date: Sun, 23 Apr 1989 05:51
42 lines
2356 bytes
In article <DEVEN.89Apr5081411@daniel.pawl.rpi.edu> I wrote:

>  OldDisplayBeep=SetFunction(IntuitionBase,0x60L,MyFunction);

In article <3767@amiga.UUCP> jimm@amiga.UUCP (Jim Mackraz) writes:
>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.

I wasn't sure either, and considered suggesting using LVODisplayBeep
to be sure, and for future compatibility -- just couldn't remember
offhand the proper semantics to do so.  Besides, then you gotta link
with amiga.lib, I think.  Icky.  :-)

>Anyway, just suppose it's 0x60 ...

I just looked it up; it is indeed 0x60.  (-0x0060, actually.)

>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.

It should be reentrant and truncate the last beep if another one
starts, to prevent long-queued beep chains...

[I was going to mention that also, but I was being lazy...]

>I guess I just wanted to comment that beeping is harder than one (I) might
>think.

Indeed.

Deven
--
------- shadow@pawl.rpi.edu ------- Deven Thomas Corzine ---------------------
Cogito  shadow@acm.rpi.edu          2346 15th Street            Pi-Rho America
ergo    userfxb6@rpitsmts.bitnet    Troy, NY 12180-2306         (518) 272-5847
sum...     In the immortal words of Socrates:  "I drank what?"     ...I think.
Technical Details
Message-ID: <SHADOW.89Apr23015153@pawl20.pawl.rpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!rpi!rpi.edu!shadow
References: <518@hvrunix.UUCP> <DEVEN.89Apr5081411@daniel.pawl.rpi.edu> <3767@amiga.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!rpi!rpi.edu!shadow
From: shadow@pawl.rpi.edu (Deven T. Corzine)
Newsgroups: comp.sys.amiga.tech
Subject: Re: SetFunction
Message-ID: <SHADOW.89Apr23015153@pawl20.pawl.rpi.edu>
Date: 23 Apr 89 05:51:53 GMT
References: <518@hvrunix.UUCP> <DEVEN.89Apr5081411@daniel.pawl.rpi.edu> <3767@amiga.UUCP>
Sender: usenet@rpi.edu
Reply-To: shadow@pawl.rpi.edu (Deven T. Corzine)
Organization: RPI Public Access Workstation Lab, Troy NY
Lines: 42
In-reply-to: jimm@amiga.UUCP's message of 22 Apr 89 01:42:32 GMT