I work on an audio Importer in JAVA (used in a drum sequencer) and I have the following problem with importing AIFF files:
I have 2 AIFF files of the same type (24bit, 44100kHz, mono), one is created on a Mac, the other is created with wavelab on a windows computer. Both files are uncompressed PCM, both are FORM == AIFF.
The AIFF from the Mac is BigEndian (as it should be), the AIFF from Wavelab (windows) is LittleEndian.
Both files can be played back properly in Wavelab (Windows) as well as in Quicktime (Windows). How can these tools detect the endianness of these files? In any way it must be possible, otherwise at least one of the files would sound just like noise (that's what happen in my application).
Is there some hidden information within the file header or any other way to determine the endianness of the AIFF file? Any suggestions?
Thanks a lot