fix G_BYTE_ORDER check
"#ifdef G_BYTE_ORDER == G_BIG_ENDIAN" cannot work, of course.
This commit is contained in:
parent
b8a1cf30e8
commit
d9c2960a55
@ -40,7 +40,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
#define OGG_DECODE_USE_BIGENDIAN 1
|
||||
#else
|
||||
#define OGG_DECODE_USE_BIGENDIAN 0
|
||||
|
@ -34,7 +34,7 @@
|
||||
#undef G_LOG_DOMAIN
|
||||
#define G_LOG_DOMAIN "mvp"
|
||||
|
||||
#ifdef G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
#define MVP_USE_LITTLE_ENDIAN false
|
||||
#else
|
||||
#define MVP_USE_LITTLE_ENDIAN true
|
||||
|
@ -40,7 +40,7 @@
|
||||
# include <sys/soundcard.h>
|
||||
#endif /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
|
||||
|
||||
#ifdef G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
# define AFMT_S16_MPD AFMT_S16_BE
|
||||
#else
|
||||
# define AFMT_S16_MPD AFMT_S16_LE
|
||||
|
@ -264,7 +264,7 @@ osx_openDevice(void *data, struct audio_format *audioFormat)
|
||||
streamDesc.mSampleRate = audioFormat->sample_rate;
|
||||
streamDesc.mFormatID = kAudioFormatLinearPCM;
|
||||
streamDesc.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger;
|
||||
#ifdef G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
streamDesc.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user