Re: .mov into AudioFilePlayer Unit?
Re: .mov into AudioFilePlayer Unit?
- Subject: Re: .mov into AudioFilePlayer Unit?
- From: Seth Willits <email@hidden>
- Date: Tue, 13 Nov 2012 21:17:09 -0800
On Nov 13, 2012, at 12:34 PM, Seth Willits wrote:
> But as you say (and I briefly alluded to in my first post), I could take those LPCM sample buffers, get ABLs back out of them and provide them via the callback to the AUGraph, but to do I'm pretty sure I'd need to buffer them since the graph will ask for some "arbitrary" amount of data from me, and I'm only able to get data in chunks the size of whatever AVF decides to give them to me, I'll have to read ahead some amount more, copy the data, figure out where to cut it, hand that back to the callback etc... Things I'm sure I could figure out in some number of hours, but I really don't want to do.
For posterity…
I came across this sample which does AVCaptureAudioDataOutput to AudioBufferList for use with an AudioUnit graph which is roughly the same thing as going from AVAssetReader:
https://developer.apple.com/library/mac/#samplecode/AVCaptureToAudioUnitOSX/Listings/CaptureSessionController_mm.html
--
Seth Willits
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden