Date: Sun, 13 Jul 1997 21:54:22 -0400 From: Randall Hopper <rhh@ct.picker.com> To: Amancio Hasty <hasty@rah.star-gate.com> Cc: multimedia@FreeBSD.ORG Subject: Re: guspnp9: Warp speed /dev/audio! & Recording always 44kHz Message-ID: <19970713215422.44611@ct.picker.com> In-Reply-To: <199707140136.SAA00270@rah.star-gate.com>; from Amancio Hasty on Sun, Jul 13, 1997 at 06:36:04PM -0700 References: <19970713211635.31507@ct.picker.com> <199707140136.SAA00270@rah.star-gate.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Amancio Hasty: |Tnks I just added a ";" and it seems to work over here with my gus. Oops, I goofed. When you said ";" I knew it. I'm used to defining RANGE as an expression not a statement, so the last patch makes RANGE() a no-op for how the driver's using it. Here's the real patch. BTW, all 24 refs of RANGE() except one (in gus_wave.c) have their own ; after RANGE(). For consistency, might want to add the ; there and whack it from the macro. Randall --- ORIG/sound_config.h Fri Jul 11 10:56:33 1997 +++ sound_config.h Sun Jul 13 21:46:02 1997 @@ -32,7 +32,8 @@ * 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) = \ + ((var)<(low)?(low) : (var)>(high)?(high) : (var)); #undef CONFIGURE_SOUNDCARD #undef DYNAMIC_BUFFER
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970713215422.44611>