Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to list all RemoteIO audio units currently in the application?

I'd like to add an output render callback via AudioUnitAddRenderNotify onto the currently active RemoteIO unit that's outputting audio to the speakers. I don't have access to the actual RemoteIO instance variable, but I'd like to get a list audio units in the app and find the RemoteIO unit that way. Is this even possible?

like image 724
kevlar Avatar asked Nov 12 '22 09:11

kevlar


1 Answers

If you can gain acces to the AUGraph then this is possible. According to the AUGraph documentation there is a couple of methods that would help you.

AUGraphGetNodeCount - to get the number of nodes in a graph AUGraphGetIndNode - to get an indexed node AUGraphNodeInfo - to get information about a node

Once you had the correct node you could get the remoteIO unit and add your callback. Gaining access to the AUGraph is actually the real issue.

like image 113
Aran Mulholland Avatar answered Nov 15 '22 05:11

Aran Mulholland