Ok so in audio files we have samples that can come in 8-bit (byte), 16-bit (short), 32-bit (int, float), and 64 bit (double). My issue is with the 32-bit how can I determine from 4 bytes if I am looking at an integer or a float. Right now I am reading in all values as floats and hoping for the best. Just for simplicity lets assume little endian.
I should also note from everything I have read the floating point values may or may not be normalized so even floating point values can exceed 1 and -1.