CVS: rdesktop rdpsnd_libao.c,1.2,1.3

Michael Gernoth <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10787

Modified Files:
	rdpsnd_libao.c 
Log Message:
#define size of resampling buffer


Index: rdpsnd_libao.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd_libao.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** rdpsnd_libao.c	8 Mar 2005 04:25:12 -0000	1.2
--- rdpsnd_libao.c	8 Mar 2005 12:09:20 -0000	1.3
***************
*** 28,31 ****
--- 28,32 ----
  
  #define MAX_QUEUE	10
+ #define WAVEOUTBUF	32
  
  int g_dsp_fd;
***************
*** 165,169 ****
  	struct audio_packet *packet;
  	STREAM out;
! 	unsigned char expanded[16];
  	int offset,len,i;
  
--- 166,170 ----
  	struct audio_packet *packet;
  	STREAM out;
! 	unsigned char expanded[WAVEOUTBUF];
  	int offset,len,i;
  
***************
*** 182,186 ****
  	{
  		/* Resample to 44100 */
! 		for(i=0; (i<(2*(3-g_samplewidth))) && (out->p < out->end); i++)
  		{
  			offset=i*4*g_samplewidth;
--- 183,187 ----
  	{
  		/* Resample to 44100 */
! 		for(i=0; (i<((WAVEOUTBUF/8)*(3-g_samplewidth))) && (out->p < out->end); i++)
  		{
  			offset=i*4*g_samplewidth;
***************
*** 197,201 ****
  	else
  	{
! 		len = (16 > (out->end - out->p)) ? (out->end - out->p) : 16;
  		memcpy(expanded,out->p,len);
  		out->p += len;
--- 198,202 ----
  	else
  	{
! 		len = (WAVEOUTBUF > (out->end - out->p)) ? (out->end - out->p) : WAVEOUTBUF;
  		memcpy(expanded,out->p,len);
  		out->p += len;



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.