I’m at the moment attempting utilizing the audio unit’s distant io in IOS Swift.
I am utilizing the rendering callback perform, however the format of ioData will not be right. I do not know learn how to convert the information and ship it.
I wish to get 7 channel knowledge, convert it to 2 channel knowledge accordingly, and output it to Output, however I do not know learn how to use audio unit. I would admire it in case you may let me know.
First, it was confirmed that it outputs effectively in actual time when utilizing two-channel knowledge. However I do not know what to do if I enter 7 channels and output 2 channels.
I perceive that knowledge is delivered by ioData, however I do not know what to do as a result of the format of output ioData needs to be completely different from the enter.
The earlier technique used was the installtap of audio engine’s enter node, however I wish to use audio unit as a result of the latency is simply too lengthy.