Hi Folks,
I hope this cross-post from this old Core Audio thread is OK. I think it deserves a new thread as it's more of an AVFoundation question.
I'm hoping someone will be able to point me in the right direction as I'm really struggling to find any working examples of supporting IAA Audio in a Swift app.
WIth a bit of digging and looking at Obj-C examples, I've managed to get my generator AU published OK so it's being recognized by a host app (AUM) and while it can't launch my app, it seems to connect to it if I launch it manually. However the audio from my app isn't showing up in the host's mixer channel although it's still audible via the shared audio session. I get the route change notification when the host app launches, and I guess I need to do *something* in there, but I'm not sure what... :-)
I create my audio graph using AVFoundation nodes and all that seems to be working fine. However, I can't figure out whether I can apply the same approach I've seen in the Core Audio IAA graph examples.
I also set up my audio session using the shared instance, playback category and mix with others. This also seems to be working fine.
If anyone can please point me in the right direction, or even share a snippet of a working example, I would be very, very, grateful. I've been on this for a couple of days now and close to giving up / banging my head on the desk until I don't know what IAA stands for anymore :-)
Thanks, -Rob
PS. Here's the core audio thread, and so far, I'm the only responder :-/ https://forums.developer.apple.com/message/132839#132839