How can I programmatically create a device with multiple outputs in OS X?

How can I programmatically create a multi-threaded device in Mac OS X?

Audio Midi Setup provides a graphical interface for creating one, but I would like to be able to create it in code.

I have already found several resources for creating aggregate devices, but devices with several outputs function differently, and I can not find anything when creating them. Here is what I have so far:

+4
source share
1 answer

I had the same need for Multi Output Device software. This example: http://daveaddey.com/?p=51 describes the needs.

I managed to do this by examining /Library/Preferences/Audio/com.apple.audio.SystemSettings.plist. This is where Audio MIDI Setup saves the configuration (on my box, El Capitan).

Create a multi-output device and an aggregate device and learn the plist. They are almost the same, except for the fact that the aggregate device has a main device, while MOD does not work.

: , MOD, . ( Soundflower )

, "" CF. CoreAudio, , , , , , "" .

, .

+1

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


All Articles