]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_bsd.c
added mem_bigendian variable
[xonotic/darkplaces.git] / snd_bsd.c
index 85f10df48a8530d3ae209f6685d36f20a3d13549..0e927f1e8d02fa01c37dd02482c272fa374794ce 100644 (file)
--- a/snd_bsd.c
+++ b/snd_bsd.c
@@ -84,11 +84,10 @@ qboolean SndSys_Init (const snd_format_t* requested, snd_format_t* suggested)
 #ifdef SUNOS
                info.play.encoding = AUDIO_ENCODING_LINEAR;
 #else
-#      if BYTE_ORDER == BIG_ENDIAN
+       if (mem_bigendian)
                info.play.encoding = AUDIO_ENCODING_SLINEAR_BE;
-#      else
+       else
                info.play.encoding = AUDIO_ENCODING_SLINEAR_LE;
-#      endif
 #endif
 
        if (ioctl (audio_fd, AUDIO_SETINFO, &info) != 0)