Publish AVAudioUnitSampler as iOS App Extension

Is it possible to publish an apple provided audio unit as an extension? I'd want to configure kAudioUnitSubType_Sampler with a custom set of samples and publish it as a unique extension.


Ideally, I'd love to just AVAudioUnitSampler and it's convenience methods.


Configuring an AVAudioUnitSampler inside of createAudioUnit(with componentDescription: AudioComponentDescription) and returning the .auAudioUnit property doesn't seem to be working.

Replies

Did you have any success with this?
I've tried using AVAudioUnitSampler's auAudioUnit property – it kind of works, but the sound is very distorted when I open in in GarageBand.