From owner-freebsd-multimedia Sun Jul 13 18:36:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA19602 for multimedia-outgoing; Sun, 13 Jul 1997 18:36:19 -0700 (PDT) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA19589 for ; Sun, 13 Jul 1997 18:36:14 -0700 (PDT) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.5/8.8.5) with ESMTP id SAA00270; Sun, 13 Jul 1997 18:36:05 -0700 (PDT) Message-Id: <199707140136.SAA00270@rah.star-gate.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: Randall Hopper cc: multimedia@FreeBSD.ORG Subject: Re: guspnp9: Warp speed /dev/audio! & Recording always 44kHz In-reply-to: Your message of "Sun, 13 Jul 1997 21:16:35 EDT." <19970713211635.31507@ct.picker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 13 Jul 1997 18:36:04 -0700 From: Amancio Hasty Sender: owner-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Tnks I just added a ";" and it seems to work over here with my gus. Two more bugs left: 1. "A related problem I am seeing though is that about 20% of the time, Ctrl-Cing a /dev/dsp play app causes the sound driver to block inside of close(). It doesn't hang the machine (thank goodness), just the app." This is a dmabuf bug and I am trying to track it down right now. 2. "< long attach_awe_obsolete(long mem_start, struct address_info *hw_config); > void attach_awe_obsolete(struct address_info *hw_config);" That is to sort out long vs. void for attach routines. Personally, I think the return type should be "long" but lets see what Luigi had in mind. Cheers, Amancio >From The Desk Of Randall Hopper : > Here's the patch to fix both the: > > - Warp speed /dev/audio! > - Recording samples always 44kHz > > bugs I reported earlier. The RANGE macro was a little dain bramaged :-) > > Randall > > > --- ORIG/sound_config.h Fri Jul 11 10:56:33 1997 > +++ sound_config.h Sun Jul 13 21:13:11 1997 > @@ -32,7 +32,7 @@ > * many variables should be reduced to a range. Here define a macro > */ > > -#define RANGE(var, low, high) if (var<(low)) var=low; else var=high ; > +#define RANGE(var, low, high) ((var)<(low)?(low) : (var)>(high)?(high) : (va r)) > > #undef CONFIGURE_SOUNDCARD > #undef DYNAMIC_BUFFER >