 
                 if type == kAudioUnitType_RemoteInstrument ||
                     type == kAudioUnitType_RemoteGenerator {
-                    self.controller.addSenderPort(
-                        ABSenderPort(
+                    self.controller.addAudioSenderPort(
+                        ABAudioSenderPort(
                             name: name,
                             title: name,
                             audioComponentDescription: AudioComponentDescription(

                    )
                }
                if type == kAudioUnitType_RemoteEffect {
                    self.controller.addFilterPort(
                        ABFilterPort(
                            name: name,
                            title: name,
                            audioComponentDescription: AudioComponentDescription(

    }

    var isConnectedToInput: Bool {
        return controller.isConnectedToAudiobus(portOfType: ABPortTypeAudioSender) ||
            audioUnit.isConnectedToInterAppAudio(nodeOfType: kAudioUnitType_RemoteEffect)
    }

