Hi all,
I’m working on a macOS/Windows plugin where, to give the listener a preview of what it will sound like, I’d like to encode the input AudioBuffer<float>
to AAC and then decode back to floats within the processBlock
callback (is this even possible with how the AAC codec works? According to the wiki it looks like the codec works in chunks of 1024 and can dynamically switch to smaller block sizes for transients. How would the plugin’s compensation delay then be consistent?).
I’d prefer to use the mac AudioToolBox & Windows Media Foundation APIs to avoid having to purchase an AAC license (NOTE I am not a lawyer and none of what I say constitues legal advice ), although it looks like using ffmpeg could possibly be an easier cross-platform solution but requires obtaining the AAC license.
However, working with these APIs is pretty much the reason I love JUCE so much – to me they seem convoluted and error-prone where JUCE is very elegant and intuitive. I was wondering if anybody knows of any projects that already wrap these “native” AAC encoders/decoders, or if anybody has any general tips on the topic.
Many thanks in advanced