How can I change the sound output device in Objective-C?

I am creating a simple Cocoa application, and I want to direct the audio output to a specific device, and not to the selected system. I know that some applications, such as Skype, let you choose where to send output. How do they do it?

I tried the MTCoreAudio framework, but I can’t even compile my application (or their demo version of AudioMonitor) with it, and the errors do not help (_objc_fatal). Are there any complete examples from which I can learn? So far my searches have not changed anything.

Thank!

+3
source share
2 answers
+1

Source: https://habr.com/ru/post/1728701/


All Articles