I am using libsndfile in C++ to read a WAV file. There are two points I don't understand:
- How can I get the "Bits per sample" value for the WAV file in question? I read the documentation at the website http://www.mega-nerd.com/libsndfile/api.html, but I didn't find a member for "Bits per sample" in the SF_INFO struct.
- Using the WAV file, how can I create the data to use to draw vectors for describing the sound data, read by function
sf_readf_float()
in library sndfile.h? Is there any method to do this?