CVS: rdesktop rdpsnd_libao.c, 1.38, 1.39 rdpsnd_sgi.c, 1.24, 1.25

Michael Gernoth <[email protected]> Tue, 30 Oct 2007 06:57:33 -0700
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv3406

Modified Files:
	rdpsnd_libao.c rdpsnd_sgi.c 
Log Message:
reduce CPU usage in libao and sgi sound driver


Index: rdpsnd_libao.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd_libao.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** rdpsnd_libao.c	8 Jan 2007 12:38:34 -0000	1.38
--- rdpsnd_libao.c	30 Oct 2007 13:57:30 -0000	1.39
***************
*** 43,47 ****
  {
  	/* We need to be called rather often... */
! 	FD_SET(0, wfds);
  }
  
--- 43,48 ----
  {
  	/* We need to be called rather often... */
! 	if (o_device != NULL && !rdpsnd_queue_empty())
! 		FD_SET(0, wfds);
  }
  

Index: rdpsnd_sgi.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd_sgi.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** rdpsnd_sgi.c	8 Jan 2007 04:47:06 -0000	1.24
--- rdpsnd_sgi.c	30 Oct 2007 13:57:31 -0000	1.25
***************
*** 46,50 ****
  {
  	/* We need to be called rather often... */
! 	FD_SET(0, wfds);
  }
  
--- 46,51 ----
  {
  	/* We need to be called rather often... */
! 	if (output_port != (ALport) 0 && !rdpsnd_queue_empty())
! 		FD_SET(0, wfds);
  }
  


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/