In the WWDC 2011 session 404 video we're told that AVAudioPlayer should be able to dynamically ignore the priming and remainder frames in AAC audio, which should enable seamless looping of compressed files, but I can't get this to work in practice.
I can verify in both Logic Pro and WaveLab that the wav versions of my files loop perfectly, but in our app (iOS) they have a clear gap at the loop point.
Our encoded files are m4a 448 kbps, 48k AAC files. I've tried exports from WaveLab and afconvert, but both fail to provide seamless looping. For afconvert I used the arguments from the WWDC video: -f "m4af" -d "aac".
Any advice? We really need to use compressed files to keep app size down, but we absolutely need them to loop seamlessly (they're ambient background soundscapes).
I can verify in both Logic Pro and WaveLab that the wav versions of my files loop perfectly, but in our app (iOS) they have a clear gap at the loop point.
Our encoded files are m4a 448 kbps, 48k AAC files. I've tried exports from WaveLab and afconvert, but both fail to provide seamless looping. For afconvert I used the arguments from the WWDC video: -f "m4af" -d "aac".
Any advice? We really need to use compressed files to keep app size down, but we absolutely need them to loop seamlessly (they're ambient background soundscapes).