Hello everyone, I joined this list because I am trying to use the functions in sndfile.c and sndfile_wav.c to read sound data. I would like to parse the data of short .wav files into an array (of unsigned ints I suppose). I managed to get riff_read_hdr to function by commenting out the line which uses the two last parameters and changing the parameter list: int riff_read_hdr (FILE * fp, char ** state, sndfile_fmt_t *fmt) became: int riff_read_hdr (FILE * fp) I did this because I had no idea what the last 2 parameters were supposed to be. But I cannot do this on int riff_read_audio (FILE * fp, char * state, sample * buf, int samples) because the function would not do anything without state and buf. Could someone please tell me what I should give to this function apart from the pointer to the sound file, preferably with an example of code with a call to riff_read_audio? Thank you,