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 <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifdef G_BYTE_ORDER == G_BIG_ENDIAN
|
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||||
#define OGG_DECODE_USE_BIGENDIAN 1
|
#define OGG_DECODE_USE_BIGENDIAN 1
|
||||||
#else
|
#else
|
||||||
#define OGG_DECODE_USE_BIGENDIAN 0
|
#define OGG_DECODE_USE_BIGENDIAN 0
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#undef G_LOG_DOMAIN
|
#undef G_LOG_DOMAIN
|
||||||
#define G_LOG_DOMAIN "mvp"
|
#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
|
#define MVP_USE_LITTLE_ENDIAN false
|
||||||
#else
|
#else
|
||||||
#define MVP_USE_LITTLE_ENDIAN true
|
#define MVP_USE_LITTLE_ENDIAN true
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
# include <sys/soundcard.h>
|
# include <sys/soundcard.h>
|
||||||
#endif /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
|
#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
|
# define AFMT_S16_MPD AFMT_S16_BE
|
||||||
#else
|
#else
|
||||||
# define AFMT_S16_MPD AFMT_S16_LE
|
# 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.mSampleRate = audioFormat->sample_rate;
|
||||||
streamDesc.mFormatID = kAudioFormatLinearPCM;
|
streamDesc.mFormatID = kAudioFormatLinearPCM;
|
||||||
streamDesc.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger;
|
streamDesc.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger;
|
||||||
#ifdef G_BYTE_ORDER == G_BIG_ENDIAN
|
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||||
streamDesc.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian;
|
streamDesc.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user