From owner-freebsd-multimedia Sun Jul 13 18:19:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA18712 for multimedia-outgoing; Sun, 13 Jul 1997 18:19:44 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id SAA18707 for ; Sun, 13 Jul 1997 18:19:40 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Sun, 13 Jul 1997 21:18:37 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA29654; Sun, 13 Jul 97 21:18:35 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id VAA06367; Sun, 13 Jul 1997 21:16:36 -0400 Message-Id: <19970713211635.31507@ct.picker.com> Date: Sun, 13 Jul 1997 21:16:35 -0400 From: Randall Hopper To: Amancio Hasty Cc: multimedia@FreeBSD.ORG Subject: Re: guspnp9: Warp speed /dev/audio! & Recording always 44kHz References: <19970713170346.27065@ct.picker.com> <199707132155.OAA00289@rah.star-gate.com> <19970713184427.05917@ct.picker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <19970713184427.05917@ct.picker.com>; from Randall Hopper on Sun, Jul 13, 1997 at 06:44:27PM -0400 Sender: owner-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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) : (var)) #undef CONFIGURE_SOUNDCARD #undef DYNAMIC_BUFFER