CVS: rdesktop rdpsnd_dsp.c,1.14,1.15

Michael Gernoth <[email protected]> Sun, 01 Oct 2006 10:51:54 -0700
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv5322

Modified Files:
	rdpsnd_dsp.c 
Log Message:
sound quality fixes for resampling


Index: rdpsnd_dsp.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd_dsp.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** rdpsnd_dsp.c	1 Oct 2006 17:23:30 -0000	1.14
--- rdpsnd_dsp.c	1 Oct 2006 17:51:51 -0000	1.15
***************
*** 276,280 ****
  	for (i = 0; i < outsize / (resample_to_channels * samplewidth); i++)
  	{
! 		int source = ((i + ratio1k / 1000 - 1) * 1000) / ratio1k;
  
  		if (source * resample_to_channels + samplewidth > size)
--- 276,280 ----
  	for (i = 0; i < outsize / (resample_to_channels * samplewidth); i++)
  	{
! 		int source = ((i * 1000) + ratio1k - 1000) / (ratio1k + 1);
  
  		if (source * resample_to_channels + samplewidth > size)


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV