Developer Notes

Jonatan Liljedahl (Kymatica AB)

Logo

IAA node panel

IMPORTANT: As of iOS 11, do not use the CAInterAppAudioSwitcherView since it has bugs that make assertiond complain and eventually crash, bringing down the whole iOS device to a reset!

Some have been wondering how I did the IAA node panel UI in my AUFX apps, shown when tapping the host icon while connected to a host.

Instead of just switching to the host, it shows a popup with icons for all nodes currently hosted in the same host, allowing easy switching between them.

Even though I’ve found no API to get such a list of sibling IAA nodes, there’s a public built-in UIView subclass in CoreAudioKit that shows this panel: CAInterAppAudioSwitcherView

It’s that simple. Just create an instance of this view, set the corresponding audio unit, and add it to some container view:

CAInterAppAudioSwitcherView *v = 
    [[CAInterAppAudioSwitcherView alloc] 
        initWithFrame:CGRectMake(0, 0, width, 80)];
[v setOutputAudioUnit:myAudioEngine.audioUnit];
[containerView addSubview:v];