Setting up Audiobus Receiver
I want my app to use Audiobus and receive audio from other apps. However, I can't seem to figure out how to go about it. I have my audio controller setup (I can play songs from music library). I added the Audiobus framework, initialised a audiobus controller with my temp api key. Right now the Audiobus slider thingy on the left side of the screen works.
The code that I am using:
audiobusController = ABAudiobusController(apiKey: "ommitted") audiobusReceiver = ABReceiverPort(name: "Main", title: "Main Input") audiobusController?.addReceiverPort(audiobusReceiver) audiobusReceiver?.clientFormat = audioController!.audioDescription audioController?.audiobusReceiverPort = audiobusReceiver audiobusController?.connectionPanelPosition = ABConnectionPanelPositionLeft