views:

167

answers:

2

Apparently SDK 3.1.2 has a built in discrimination about certain audio.caf files being passed to AVAudioplayer.

Some files that worked fine with SDK 3.0.1 get a returned content null from AVAudioplayer using exact same code on simulator or iphone with SDK 3.1.2.

All files are 16-bit Integer, Big Endian, Mono, 22.050 KHz, Data rate 352.8 Kbits/s. All files have same rwx permissions and ownerships and have similiar size and duration ~7 secs.

How do I get visibility to what is different about files that work and ones that don't and convert or fix the ones that don't work?

I tried running "afconvert -f caff -d LEI16@22050 input.caf output.caf" to try and get SDK 3.1.2 to accept file with no luck.

A: 

Yeah.. have the same problems here. Struggling for 4 days now :-/ Did you find a solution for this? As a workaround I was able to fix some of these problems by doing .aiff instead of .caf but still that worked like for 2 files out of 6.

Alex

Alex Kremer
A: 

Found out that 3.1.2 requires 11025hz in caf lpcm to work correctly.. afconvert -d "BEI16@11025" test2.caf test2_cool.caf solved my issues.

HTH, Alex

Alex Kremer