From 900efb873c2b9fbc6453c41786b2e299dddb7a87 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 26 Jun 2005 22:36:44 +0000 Subject: [PATCH] bugfix from Jeremy Meng git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@911 423420c4-83ab-492f-b58f-81f9feb106b5 --- rdpsnd_sgi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rdpsnd_sgi.c b/rdpsnd_sgi.c index 2bcbd14..9d0a616 100644 --- a/rdpsnd_sgi.c +++ b/rdpsnd_sgi.c @@ -77,7 +77,7 @@ wave_out_open(void) queue_lo = queue_hi = 0; audioconfig = alNewConfig(); - if (audioconfig < 0) + if (audioconfig == (ALconfig) 0) { fprintf(stderr, "wave_out_open: alNewConfig failed: %s\n", alGetErrorString(oserror())); @@ -159,10 +159,10 @@ wave_out_set_format(WAVEFORMATEX * pwfx) #endif } - /* Limited support to configure an opened audio port in IRIX The + /* Limited support to configure an opened audio port in IRIX. The number of channels is a static setting and can not be changed after - a port is opened. So if the number of channels remains the same, we - can configure other settings Otherwise we have to reopen the audio + a port is opened. So if the number of channels remains the same, we + can configure other settings; otherwise we have to reopen the audio port, using same config. */ channels = pwfx->nChannels;