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

Valid 16-bit PCM wave file not loading #15

Closed
skratchdot opened this Issue Sep 21, 2011 · 1 comment

Comments

Projects
None yet
1 participant
@skratchdot
Copy link
Owner

skratchdot commented Sep 21, 2011

A wave file with the following info was not loading:

Format : PCM
Sample Rate : 44100
Bits Per Sample : 16
Channels : 2

After re-saving with Audacity (in same format), the file will import.

@skratchdot

This comment has been minimized.

Copy link
Owner Author

skratchdot commented Sep 21, 2011

Turns out this was due to the way I was parsing RIFF wave files.

Per the specs I've read, PCM "fmt " chunks are not supposed to have "Extra Format Bytes" (see http://www.sonicspot.com/guide/wavefiles.html).

I was expecting a 16 byte chunk, but this file had an 18 byte chunk.

Turns out I was reading the spec wrong (or not all programs respect the PCM clause- and include extra bytes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment