I am trying to read audio frames and decode them with AVAssetReader. I want to be able to read the frames asynchronously and add some kind of callback when a sample buffer was read. So after calling:
...
[reader startReading];
CMSampleBufferRef sample = [readerOutput copyNextSampleBuffer];
I want to be able to refer to and process this sample from my callback. Is that possible? If not, can you suggest how I can do it using maybe other classes from AVFoundation/Core Audio?