audiofile icon indicating copy to clipboard operation
audiofile copied to clipboard

Getting error "file missing data -- read 49 frames, should be 0 [error 5]"

Open nikreiman opened this issue 12 years ago • 3 comments

A user reported that my application which uses audiofile sometimes throws this message when writing WAVE files to disk:

Audio File Library: file missing data -- read 49 frames, should be 0 [error 5]

Is this an error in audiofile, or my program's misuse of the library? My reading/writing functions which use audiofile can be found here:

https://github.com/teragonaudio/MrsWatson/blob/develop/source/SampleSourceAudiofile.c

nikreiman avatar Sep 09 '12 13:09 nikreiman

This error message would indicate that the audio file's header claims more frames than are actually contained in the file. Could you send me the file in question? And could you also find out what version of the library is in use?

mpruett avatar Sep 09 '12 20:09 mpruett

At the time of the bug report, MrsWatson was using audiofile 0.3.3, but I've since updated to 0.3.4 for the latest release. Looking at the commits between 0.3.3-0.3.4, nothing strikes me as a potential fix for this issue, but you never know. :)

I don't have an example of a failing file, but @michv (who originally reported the bug to me) might have one or could generate one. I'll try to get him/her to send one, and also to try again with a version that contains 0.3.4 to reproduce the problem.

nikreiman avatar Sep 10 '12 08:09 nikreiman

The file can be found here: https://github.com/downloads/teragonaudio/MrsWatson/sa_BT_Fast_Satellite.wav

Sorry for the long delay in getting back to you on this issue.

nikreiman avatar Oct 22 '12 14:10 nikreiman