Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ccut!wnoc-tyo-news!ascwide!ascgw!fgw2!fgw!pfrad!ace!melby From: melby@pappa.yk.fujitsu.co.jp (John Melby) Newsgroups: comp.windows.x Subject: Re: SPARC audio xbiff Message-ID: Date: 4 Mar 91 09:31:40 GMT References: <1991Feb19.171235.4893@cs.utk.edu> <1991Feb23.234709.20600@acc.stolaf.edu> Sender: news@ace.yk.fujitsu.co.jp Followup-To: comp.windows.x Organization: Open Systems Dept. Div. 2 Sect. 3, FUJITSU LTD. Lines: 26 Nntp-Posting-Host: pappa In-reply-to: fwp1@CC.MsState.Edu's message of 24 Feb 91 01:17:06 GMT >>>Anyone have a working audio xbiff? I was unable to get either the > >> I too would like one (a working audio Xbiff) preferably one that uses >> a simple system call to make the sound (so i could put in my own play >> sounds program). > >An audio version of xbiff is available on expo.lcs.mit.edu in the >contrib directory (as xbiff++.tar.Z). Of course, the simplest way to get a sound out of xpbiff and its ilk is to replace the XSync(XtDisplay(toplevel), 0); line with a system call such as system("cat %s > /dev/audio") where %s is the mu-law (.au) file. I use XGetDefault to take the "xbiff.bellFile" resource and, if it is non-empty, use it as the file name. This, of course, is left as an exercise to the reader. :-) Of course, if your program has the suid-bit set, you will want to use something more secure than system(). ----- John B. Melby Fujitsu Limited, Machida, Japan melby@yk.fujitsu.co.jp