I have looked at sample programs that use libsndfile, but could not get any of them to compile. I want to be able to read a .wav file into an array of integers (or doubles) without having to worry about what kind of .wav file it is, or even about anything in the header. I only care about getting the data into an array, so I can do my own processing on the individual samples.
I have downloaded the source code for libsndfile. There are so many files and folders, I don't know where to start. What do I need to include? What methods do I need to use? Does someone have a simple example that actually works?