Make sure that g_dsp_busy is initialized to False

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@503 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2003-10-19 11:59:41 +00:00
parent 4c5cfb6a32
commit 62c180be72
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@
#define MAX_QUEUE 10
int g_dsp_fd;
BOOL g_dsp_busy;
BOOL g_dsp_busy = False;
static struct audio_packet
{

View File

@ -31,7 +31,7 @@
#define MAX_QUEUE 10
int g_dsp_fd;
BOOL g_dsp_busy;
BOOL g_dsp_busy = False;
static BOOL reopened;
static BOOL swapaudio;
static short samplewidth;

4
xwin.c
View File

@ -1204,7 +1204,7 @@ ui_select(int rdp_socket)
#ifdef WITH_RDPSND
/* FIXME: there should be an API for registering fds */
if (g_rdpsnd && g_dsp_busy)
if (g_dsp_busy)
{
FD_SET(g_dsp_fd, &wfds);
n = (g_dsp_fd + 1 > n) ? g_dsp_fd + 1 : n;
@ -1224,7 +1224,7 @@ ui_select(int rdp_socket)
return 1;
#ifdef WITH_RDPSND
if (g_rdpsnd && g_dsp_busy && FD_ISSET(g_dsp_fd, &wfds))
if (g_dsp_busy && FD_ISSET(g_dsp_fd, &wfds))
wave_out_play();
#endif
}