go-audio / aiff

Battle tested aiff decoder/encoder
Apache License 2.0
25 stars 6 forks source link

IsValidFile fails on aiff files generated by the Mac OSX `say` command. #4

Open biblical-text opened 2 years ago

biblical-text commented 2 years ago

Thanks for your work in this, its great.

Here is a sample file, you can run it on the aifftowav sample code in this repository and IsValidFile returns false. I had to zip it, because GitHub doesnt allow aiff files.

If you comment out the IsValidFile check, the aifftowav command works fine.

melina~ακ.aiff.zip .

y-71 commented 11 months ago

i've filed a draft PR to try to resolve it,

it failed to read header - format not supported - [4]uint8{0x52, 0x49, 0x46, 0x46}

https://github.com/go-audio/aiff/pull/5