CVS: rdesktop rdpsnd_sun.c,1.11,1.12
Michael Gernoth <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12243
Modified Files:
rdpsnd_sun.c
Log Message:
use ifdef to see if we are big-endian
Index: rdpsnd_sun.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd_sun.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** rdpsnd_sun.c 11 Dec 2003 15:07:04 -0000 1.11
--- rdpsnd_sun.c 7 May 2004 12:01:53 -0000 1.12
***************
*** 111,115 ****
{
audio_info_t info;
- int test = 1;
ioctl(g_dsp_fd, AUDIO_DRAIN, 0);
--- 111,114 ----
***************
*** 126,130 ****
info.play.encoding = AUDIO_ENCODING_LINEAR;
/* Do we need to swap the 16bit values? (Are we BigEndian) */
! g_swapaudio = !(*(uint8 *) (&test));
}
--- 125,133 ----
info.play.encoding = AUDIO_ENCODING_LINEAR;
/* Do we need to swap the 16bit values? (Are we BigEndian) */
! #ifdef B_ENDIAN
! g_swapaudio = 1;
! #else
! g_swapaudio = 0;
! #endif
}
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3