我想在图表中使用我的kAudioUnitType_MusicEffectAU 。AVAudioEngine所以我试着打电话:
[AVAudioUnitMIDIInstrument instantiateWithComponentDescription:desc options:kAudioComponentInstantiation_LoadInProcess completionHandler:
但这只会产生 normal ,因此无法识别AVAudioUnitmidi 选择器(如 - )。[AVAudioUnit sendMIDIEvent:data1:data2:]:它似乎AVAudioUnitMIDIInstrument instantiateWithComponentDescription只适用于kAudioUnitType_MusicDevice.
有什么办法可以做到这一点?(注:OS X 10.11)