We have created an app which is based on SIP calling feature in Mac system. In this case I need to stream call audio to our server for eg. Microphone and speaker. Not only call audio if any audio Mac system is producing through speaker (User can use headphone) for eg. Youtube, you need to capture in buffer. You need to implement audio feature in C or C++ and provide one interface for swift language in Xcode.
For Understanding you can try like this, You can start meeting from zoom, slack or Skype etc and in the same time you can run the your application where you can capture meeting call audio from mic and speaker (Try with Headphone) and then capture the buffer of mic and speaker. If you are able to do that you need to create this feature in C or C++ language and provide an interface so that we can use that buffer in swift project.
For your information Mac system does not allow to capture internal audio so you need to deep dive into Kernel based coding in C or C++.
We don’t want to use any third party library.