reduce CPU usage in libao and sgi sound driver

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1421 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2007-10-30 13:57:31 +00:00
parent 5c01b88a5f
commit ac49af5c6a
2 changed files with 4 additions and 2 deletions

View File

@ -42,6 +42,7 @@ void
libao_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv)
{
/* We need to be called rather often... */
if (o_device != NULL && !rdpsnd_queue_empty())
FD_SET(0, wfds);
}

View File

@ -45,6 +45,7 @@ void
sgi_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv)
{
/* We need to be called rather often... */
if (output_port != (ALport) 0 && !rdpsnd_queue_empty())
FD_SET(0, wfds);
}