ref: 635d8cad2d27fc7a6438136322d7d62634ca2056
parent: 3b3ed4fe81d7466ca1bc342dfa4ebf301e2cb26b
author: cbagwell <cbagwell>
date: Thu Sep 6 17:10:55 EDT 2007
Finally found and fixed the big endian swap bug.
--- a/src/soxio.c
+++ b/src/soxio.c
@@ -387,7 +387,7 @@
} while (0);
#define TWIDDLE_WORD(uw, type) \
- if (ft->signal.reverse_bytes ^ SOX_IS_BIGENDIAN) \
+ if (ft->signal.reverse_bytes) \
uw = sox_swap ## type(uw);
/* N.B. This macro doesn't work for unaligned types (e.g. 3-byte
--- a/src/sunaudio.c
+++ b/src/sunaudio.c
@@ -314,7 +314,7 @@
static sox_format_handler_t sox_sunau_format = {
names,
- SOX_FILE_DEVICE | SOX_FILE_LIT_END,
+ SOX_FILE_DEVICE,
sox_sunstartread,
sox_rawread,
sox_rawstopread,