CVS: rdesktop rdpsnd_libao.c,1.24,1.25

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

Modified Files:
	rdpsnd_libao.c 
Log Message:
make libao a bit more efficient on big endian


Index: rdpsnd_libao.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd_libao.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** rdpsnd_libao.c	1 Oct 2006 14:03:43 -0000	1.24
--- rdpsnd_libao.c	1 Oct 2006 22:27:11 -0000	1.25
***************
*** 30,34 ****
  #include <sys/time.h>
  
! #define WAVEOUTBUF	16
  
  static ao_device *o_device = NULL;
--- 30,34 ----
  #include <sys/time.h>
  
! #define WAVEOUTBUF	512
  
  static ao_device *o_device = NULL;
***************
*** 56,60 ****
  	format.channels = 2;
  	format.rate = 44100;
! 	format.byte_format = AO_FMT_LITTLE;
  
  	o_device = ao_open_live(default_driver, &format, NULL);
--- 56,61 ----
  	format.channels = 2;
  	format.rate = 44100;
! 	format.byte_format = AO_FMT_NATIVE;
! 
  
  	o_device = ao_open_live(default_driver, &format, NULL);
***************
*** 97,101 ****
  	format.channels = pwfx->nChannels;
  	format.rate = 44100;
! 	format.byte_format = AO_FMT_LITTLE;
  
  	if (o_device != NULL)
--- 98,102 ----
  	format.channels = pwfx->nChannels;
  	format.rate = 44100;
! 	format.byte_format = AO_FMT_NATIVE;
  
  	if (o_device != NULL)
***************
*** 195,199 ****
  	libao_driver.name = xstrdup("libao");
  	libao_driver.description = description;
! 	libao_driver.need_byteswap_on_be = 0;
  	libao_driver.need_resampling = 1;
  	libao_driver.next = NULL;
--- 196,200 ----
  	libao_driver.name = xstrdup("libao");
  	libao_driver.description = description;
! 	libao_driver.need_byteswap_on_be = 1;
  	libao_driver.need_resampling = 1;
  	libao_driver.next = NULL;


-------------------------------------------------------------------------
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