I have an array of bytes representing data from a .wav file. I want to convert it to an array of doubles, so that I can do operations such as FFT on it to determine whether one file is contained in the other.
Right now, I simply cast the bytes to doubles, which gives me decent results, but not as precise as I would like. I know this is improper conversion, and I feel like it is causing me to miss data, because of the difference in what bytes and doubles represent.
How can I convert the byte array to a double array properly before doing the FFT correlation?