ref: 902c120349a83b26776e9c75147b5d00120440af
parent: 4554e1f0311a0d0f9b62ea8b013fffcfcd82fa7f
author: rrt <rrt>
date: Sat Jan 27 20:26:10 EST 2007
Remove confusing (it confused the hell out of me!) and unnecessary endianness checking code.
--- a/src/wve.c
+++ b/src/wve.c
@@ -11,7 +11,6 @@
/* Magic numbers used in Psion audio files */
#define PSION_MAGIC "ALawSoundFile**"
#define PSION_VERSION ((short)3856)
-#define PSION_INV_VERSION ((short)4111)
#define PSION_HDRSIZE 32
typedef struct wvepriv
@@ -72,16 +71,9 @@
st_readw(ft, (unsigned short *)&version);
- /* Check for what type endian machine it's read on */
- if (version == PSION_INV_VERSION)
- {
- ft->signal.reverse_bytes = !ft->signal.reverse_bytes;
- st_debug("Found inverted PSION magic word. Swapping bytes.");
- }
- else if (version == PSION_VERSION)
- {
- st_debug("Found PSION magic word");
- }
+ /* Check magic version */
+ if (version == PSION_VERSION)
+ st_debug("Found Psion magic word");
else
{
st_fail_errno(ft,ST_EHDR,"Wrong version in Psion header");