I'm using MTAudioProcessingTap
and Apple's sample code to process some multichannel audio, but am wondering if it supports anything more than stereo? Despite a 6-channel AVAsset
used to setup the AVMutableAudioMixInputParameters
, I'm still only seeing two channels of data when the tap's "prepare" callback is called:
static void prepare(MTAudioProcessingTapRef tap, CMItemCount maxFrames, const AudioStreamBasicDescription *processingFormat)
In that callback, processingFormat->mChannelsPerFrame
equals 2. But where does the processingFormat
get setup in the first place? Is there a way to change this to match the 6-channel asset? In other words, does the tap support multichannel data? There's not much documentation on MTAudioProcessingTap
besides the sample project and the WWDC2012 video so it's a challenge tracking down the issue. Thanks for reading.
0 comments:
Post a Comment