Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nikreiman opened this issue Sep 9, 2012 · 3 comments

Comments

@nikreiman
Copy link
Contributor

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

@mpruett
Copy link
Owner

mpruett commented Sep 9, 2012

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?

@nikreiman
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants