From owner-freebsd-multimedia Tue Mar 26 05:54:39 1996 Return-Path: owner-multimedia Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA05769 for multimedia-outgoing; Tue, 26 Mar 1996 05:54:39 -0800 (PST) Received: from central.picker.com (central.picker.com [144.54.31.2]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id FAA05756 for ; Tue, 26 Mar 1996 05:54:34 -0800 (PST) Received: from ct.picker.com by central.picker.com with smtp (Smail3.1.28.1 #3) id m0u1Z3P-0004sCC; Tue, 26 Mar 96 08:44 EST Received: from elmer.picker.com ([144.54.52.5]) by ct.picker.com (4.1/SMI-4.1) id AA01788; Tue, 26 Mar 96 08:44:10 EST Received: by elmer.picker.com (SMI-8.6/SMI-SVR4) id IAA28365; Tue, 26 Mar 1996 08:48:14 -0500 From: rhh@ct.picker.com (Randall Hopper) Message-Id: <199603261348.IAA28365@elmer.picker.com> Subject: Re: Speak Freely v6.0 on VoxWare/FreeBSD/Linux (was speak-freely-digest V1 #16) To: haver@harding.et.tudelft.nl (Bert Haverkamp) Date: Tue, 26 Mar 1996 08:48:13 -0500 (EST) Cc: speak-freely@fourmilab.ch, freebsd-multimedia@freebsd.org, linux-sound@vger.rutgers.edu In-Reply-To: <199603261329.OAA04254@rumil.et.tudelft.nl> from "Bert Haverkamp" at Mar 26, 96 02:29:34 pm Reply-To: rhh@ct.picker.com Organization: Picker International, CT Division X-Mailer: ELM [version 2.4 PL24 PGP3 *ALPHA*] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >The first patch you suggested works fine. the problem with sfspeaker >have disappeared. Glad to hear it! >>2) As I recall, the other problem I had was caused by the first hack. >> soundbyte.c:soundflush's read() was blocking. Commented that out and >> wasn't any the worse for it. Seemed to work fine. > >This second patch I don't really understand. What part do I need to >comment out? I'm not an experienced C-programmer, and my confusion is >doubled by the fact that I found two declarations for soundflush() in >soundbyte.c I tried to exclude the read command in the first >soundflush, but without result. I tried a few other things, but I kept >the same error. >I added soundbyte.c, maybe it can refresh your memory:) >The problem I now have are with sfmike: >> sfmike echo.fourmilab.ch >Space bar switches talk/pause, Esc or "q" to quit >Talk: soundflush: Interrupted system call >Talk: soundflush: Interrupted system call >Talk: soundflush: Interrupted system call >Talk: soundflush: Interrupted system call Yep. Same symptom that caused me to make the second hack. The second soundflush is for SGI's, so the first soundflush is the one to modify. I think the patch I made was to comment out the soundflush code that kicks in for Voxware/FreeBSD/Linux. ... > Sound interface for Speak Freely for Unix >/* SOUNDFLUSH -- Flush any queued sound. */ > >void soundflush() >{ > char sb[BUFL]; >#ifndef sun > int c; >#endif > >#ifndef sun #ifdef RHH_REMOVED_THIS_STUFF > while (TRUE) { > c = read(audiof, sb, BUFL < abuf_size ? BUFL : abuf_size); > if (c < 0 && errno == EAGAIN) > c = 0; > if (c < 0) > perror("soundflush"); > if (c <= 0) > break; > } #endif >#else ... Hope this helps! Randall Hopper rhh@ct.picker.com