CVS: rdesktop rdpsnd_libao.c,1.32,1.33

Michael Gernoth <[email protected]> Sun, 24 Dec 2006 07:16:47 -0800
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv3034

Modified Files:
	rdpsnd_libao.c 
Log Message:
let libao output work again


Index: rdpsnd_libao.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd_libao.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** rdpsnd_libao.c	24 Dec 2006 13:53:23 -0000	1.32
--- rdpsnd_libao.c	24 Dec 2006 15:16:45 -0000	1.33
***************
*** 42,45 ****
--- 42,47 ----
  libao_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv)
  {
+ 	/* We need to be called rather often... */
+ 	FD_SET(0, wfds);
  }
  
***************
*** 174,177 ****
--- 176,181 ----
  	if ((out->p == out->end) || duration > next_tick - packet->tick + 500)
  	{
+ 		unsigned int delay_us;
+ 
  		prev_s = tv.tv_sec;
  		prev_us = tv.tv_usec;
***************
*** 184,188 ****
  		}
  
! 		rdpsnd_queue_next(duration);
  	}
  }
--- 188,194 ----
  		}
  
! 		delay_us = ((out->size/4) * (1000000 / 44100));
! 
! 		rdpsnd_queue_next(delay_us);
  	}
  }


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