Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 1997 18:36:04 -0700
From:      Amancio Hasty <hasty@rah.star-gate.com>
To:        Randall Hopper <rhh@ct.picker.com>
Cc:        multimedia@FreeBSD.ORG
Subject:   Re: guspnp9: Warp speed /dev/audio! & Recording always 44kHz 
Message-ID:  <199707140136.SAA00270@rah.star-gate.com>
In-Reply-To: Your message of "Sun, 13 Jul 1997 21:16:35 EDT." <19970713211635.31507@ct.picker.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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
> 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707140136.SAA00270>