move code around to use coreaudio aac encoder