X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=snd_bsd.c;h=0e927f1e8d02fa01c37dd02482c272fa374794ce;hb=4c61497f6bb3694fa9cd4457e0c5d0dbf1e95ecd;hp=85f10df48a8530d3ae209f6685d36f20a3d13549;hpb=65f6c04779aa58c69929e0d22967bf152dac17c1;p=xonotic%2Fdarkplaces.git diff --git a/snd_bsd.c b/snd_bsd.c index 85f10df4..0e927f1e 100644 --- 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)