It seems that Adobe After Effect take some liberty with the wav file format.
The Juce git version a983bb1300e6ade0e475d163dc035aa61cde28a2 (31 Aug 2009 160852)
can parse Adobe After Effect wav. Avcodec, avformat, VLC mediaplayer can parse them too, but the current Juce git trunk cannot.
When I save a simple uncompressed PCM S16 (araw) 48000khz 16bit wav file,
The header in hexadecimal editor look like this:
I’m not a specialist of wav file format but it seems that file length is set to -8 in little endian !!!
In last Juce git trunk code, WavAudioFormatReader constructor
compute len to -8 and end to 0. So the further while loop exit directly without computing frequency and AudioFormat::createReaderFor return nullptr.
Can you do something to support this again ?
Thanks
yes len is 0xfffffffffffffff8
but end is 0x0 instead of 0x100000000
(signed unsigned implicit cast?)
I’m using Visual Studio Express 2008 on WinXP 32.
the parsing fail also on Visual Studio 2008 win64 on win7 too.
With Juce current git master code.
(I do not know how to get git module branch, but this code block seem to be the same).
Be prepared for some minor code changes if you switch to the modules layout, but in my case the migration turned out to be surprisingly easy for such a big structural change of the JUCE internals.
Apologies for digging up this post, but I wanted to simply note that JUCE does not support the following WAV file formats, in case other JUCE coders are running into any kind of trouble when loading a wave file:
Microsoft ADPCM Wave [http://wiki.multimedia.cx/index.php?title=Microsoft_ADPCM]
[/list]
Any wave that is of type Adaptive Delta Pulse Code Modulation (ADPCM) will not be decoded, and simply cause an assertion. The same shall occur for the compressed wave formats like µ-Law and A-Law.