summaryrefslogtreecommitdiffstats
path: root/polyp/esound.h
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/esound.h')
-rw-r--r--polyp/esound.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/polyp/esound.h b/polyp/esound.h
index 5dc2583b..9c507ef9 100644
--- a/polyp/esound.h
+++ b/polyp/esound.h
@@ -200,14 +200,10 @@ enum esd_client_state {
};
typedef int esd_client_state_t;
-/* switch endian order for cross platform playing */
-#define swap_endian_32(x) ((x >> 24) | ((x >> 8) & 0xFF00) | (((x & 0xFF00) << 8)) | (x << 24))
-#define maybe_swap_endian_32(c,x) ((c) ? swap_endian_32(x) : x)
-
/* the endian key is transferred in binary, if it's read into int, */
/* and matches ESD_ENDIAN_KEY (ENDN), then the endianness of the */
/* server and the client match; if it's SWAP_ENDIAN_KEY, swap data */
-#define ESD_SWAP_ENDIAN_KEY ((uint32_t) swap_endian_32(ESD_ENDIAN_KEY))
+#define ESD_SWAP_ENDIAN_KEY (UINT32_SWAP(ESD_ENDIAN_KEY))
#endif