summaryrefslogtreecommitdiffstats
path: root/polyp/esound.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-02-03 14:39:39 +0000
committerPierre Ossman <ossman@cendio.se>2006-02-03 14:39:39 +0000
commitd9bfd5b294f2771d9c41fa100d835067dcc7f718 (patch)
tree4b9f7afb2d5f617e59c962ab9de4438d32614a44 /polyp/esound.h
parent5c01c1029fc73016184119ce81bb9ae95b3c1f0f (diff)
Let's have just one endian conversion macro suite.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@475 fefdeb5f-60dc-0310-8127-8f9354f1896f
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