Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!zazen!dogie!anderson From: anderson@dogie.macc.wisc.edu (Jess Anderson) Newsgroups: comp.sys.next Subject: Re: Attaching sounds to actions? Message-ID: <1991Jan24.025448.1705@macc.wisc.edu> Date: 24 Jan 91 02:54:48 GMT References: <992@kaos.MATH.UCLA.EDU> Sender: news@macc.wisc.edu (USENET News System) Distribution: na Organization: Madison Academic Computing Center, UW-Madison Lines: 57 In article <992@kaos.MATH.UCLA.EDU> barry@pico.math.ucla.edu (Barry Merriman) writes: >Here's the answer about how to attach sounds to actions---its >the Unix way, of course! [various methods] >Complications: >------------- >If you work in a heterogenous environment---say suns and NeXTs, >then you need to put conditional statements in front of all the >above commands, conditioning on whether you are logged into the NeXT. >A crude way to do this is >if(`hostname` == my_next_hostname ) >But this is clumsy if you have many NeXTs. > >A better way is to see if the NeXT files are present, and use this >to deside. E.g., > >if ( -e "/.NeXT" ) > >checks for the existence of the /.NeXT directory. I'm not very Unix-proficient (but I'm working on it :-), but I don't think that does it. When I'm not at my desk (where the NeXT is), like from home at the moment, I reach it by dialing in to a VMS Vax, then rlogin to the NeXT over the campus ethernet. I'd get a true on both those tests and pass the *.snd file to the terminal (eek), right? Hm. Maybe a sed or awk script to extract the useful info from the output of a who command and test the result? >Getting sounds >-------------- > >Well, this is up to you. You can always record them through the >built in mike using SoundPlayer---though these are of lesser quality. I tried setting my system beep to an oops.snd file I made with SoundPlayer, and that was when I noticed the cube has what I would call loud fans, even though it's under a sturdy table. It's the sort of noise you tune out in life but that is heard right away on a sound recording. I had a similar problem while playing with my Sound Blaster board in the PC at home (it has even louder fans, including one in the monitor). (Can you believe adults do these things? I can't! :-) -- Jess Anderson <> Madison Academic Computing Center <> University of Wisconsin Internet: anderson@macc.wisc.edu <-best, UUCP:{}!uwvax!macc.wisc.edu!anderson NeXTmail w/attachments: anderson@yak.macc.wisc.edu Bitnet: anderson@wiscmacc Room 3130 <> 1210 West Dayton Street / Madison WI 53706 <> Phone 608/262-5888