{"_id":"@animaker/macos-audio-devices","_rev":"4-f3c76fad26eb39878ee3ed104253fb18","name":"@animaker/macos-audio-devices","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"@animaker/macos-audio-devices","version":"1.0.0","description":"Get, set and configure the audio devices on macOS","repository":{"type":"git","url":"git+https://github.com/karaggeorge/macos-audio-devices.git"},"funding":"https://github.com/sponsors/karaggeorge","author":{"name":"George Karagkiaouris","email":"gkaragkiaouris2@gmail.com","url":"https://gkaragkiaouris.tech"},"private":false,"bin":{"macos-audio-devices":"audio-devices","audio-devices":"audio-devices"},"license":"MIT","scripts":{"test":"xo && tsd","build":"swift build --configuration=release && mv .build/release/audio-devices .","prepublishOnly":"npm run build"},"keywords":["macos","swift","audio","devices","input","output","volume","mute","microphone","speaker","list","default"],"engines":{"node":">=8"},"dependencies":{"electron-util":"^0.13.1","execa":"^4.0.0","macos-version":"^5.2.0"},"devDependencies":{"tsd":"^0.11.0","xo":"^0.25.3"},"xo":{"space":2},"gitHead":"5b5db178bc01a019fb4865bae083a0b9b4fdb0d4","bugs":{"url":"https://github.com/karaggeorge/macos-audio-devices/issues"},"homepage":"https://github.com/karaggeorge/macos-audio-devices#readme","_id":"@animaker/macos-audio-devices@1.0.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-FL/lxbyDsqq9F+TI3DRzXicskQKc6q69n+8gbiSEpk/E2BxMd9BfRVDRbJ84I7ZiwqbNCkb8bCPWva+SabtIrA==","shasum":"4eb361fde9255e0d228af892d41499d5544b2b0b","tarball":"https://registry.npmjs.org/@animaker/macos-audio-devices/-/macos-audio-devices-1.0.0.tgz","fileCount":6,"unpackedSize":1101057,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhozjCRA9TVsSAnZWagAAd8cQAJmiGmHBrciEty+bRF2C\n7tfk/AkTyhedCjpjYP0vj0cAu4sWBK1JsdEsNZ0twrWYGxI07jcxmvcB7+43\nF1yxKD/GMxG1wSNblBgnbmme0drugQ8WBi94sq2YYuOW6qtx1joEX7jCn4u2\n+0rnz4Gp7URkaGRIZ2sk3PB1zd5d32u69YeYfgBfGw4mu4opheuooVJ/KVgD\nuKDnCLUSKYfW0j1Nm1PXrVj6XXu3A9DxCY7owDJnBq/HX368FmZcHFVu9eCA\ndvvAdkerYXzdd7ZGvhfZgcxZuD+Z+0/R4V+1TB7lkg+g8c577HnEzCFKVEWk\nbX1ybJl03LMRmI6okBtIZST67KtLGu5xOJbSLjIBcat4bEgTdhti63AI6x9/\nmUjMrpJ2VpG5dtfbCQAZh4bGog+M77oCGJMAWbUSP/nG8qqxUT8gH+Hpos1W\ncR/xhkp5D4khijS64GPRswNKyMDyWIRJpK8fpja2Nc+gS5W0xwmGsYDP0ZpX\n8D7hsVY2/KUY7cv9p7smhH6OQEThHowMW2SpOd42Cct/30PwfOPVC9GgIFBh\npgZthiChjssinZ8/voBA/FcDvEGAuo0PZGpAMB596db9NgutNHvHwneYWkVA\nZBEv6ZbrvAuElcgFzgk1ZbZ426wnjnTedWf0BzUpAEftWIKekKcnzNkUBZvC\nQBgU\r\n=pOGa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFFcydHq6H7fn/YsDmASYli7NXx+tCCYbuqJP27LSeHQIgNHbxUWcE5aP+ATYCtWmjZMAdC/LFfF5ncKinxAry5g4="}]},"maintainers":[{"name":"animaker","email":"info@animaker.com"}],"_npmUser":{"name":"animaker","email":"info@animaker.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macos-audio-devices_1.0.0_1602653410992_0.5508557706260941"},"_hasShrinkwrap":false},"1.1.0":{"name":"@animaker/macos-audio-devices","version":"1.1.0","description":"Get, set and configure the audio devices on macOS","repository":{"type":"git","url":"git+https://github.com/karaggeorge/macos-audio-devices.git"},"funding":"https://github.com/sponsors/karaggeorge","author":{"name":"George Karagkiaouris","email":"gkaragkiaouris2@gmail.com","url":"https://gkaragkiaouris.tech"},"bin":{"macos-audio-devices":"audio-devices","audio-devices":"audio-devices"},"private":false,"license":"MIT","scripts":{"test":"xo && tsd","build":"swift build --configuration=release && mv .build/release/audio-devices .","prepublishOnly":"npm run build"},"keywords":["macos","swift","audio","devices","input","output","volume","mute","microphone","speaker","list","default"],"engines":{"node":">=8"},"dependencies":{"electron-util":"^0.13.1","execa":"^4.0.0","macos-version":"^5.2.0"},"devDependencies":{"tsd":"^0.11.0","xo":"^0.25.3"},"xo":{"space":2},"gitHead":"6105f0f2a911e7ccb6c11dbaba9de3de736f4552","bugs":{"url":"https://github.com/karaggeorge/macos-audio-devices/issues"},"homepage":"https://github.com/karaggeorge/macos-audio-devices#readme","_id":"@animaker/macos-audio-devices@1.1.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-NKbqNTOvFlEn+abyRvTXaqbXrrglNXGAGl1ddVOZGy0kiWKzn7Dvb7RPrAcDHRt9UR70XN0omVHmaZEEgGyr+A==","shasum":"42e238ad3cf9ab4b8c79995ef40b6d18b7bafd9f","tarball":"https://registry.npmjs.org/@animaker/macos-audio-devices/-/macos-audio-devices-1.1.0.tgz","fileCount":6,"unpackedSize":1100794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2fTDCRA9TVsSAnZWagAA1L4P/jxrln67eL7lbOt04STB\nZgQPYKQ+o7Fo1+WctmPT1khy1baMwDhbYpN2PM52m7Eg63alvMqEPpXYebvi\nwSBqCV1vX01fUFaloXd7Ca4teYSNNuGgScEOVK/gS3mD+c1z2ufkDwUBW5M7\nOG7/Vjjy3VNcYAHW94dxC2jUmb7fxEjUtibhamwA/XJ+Mt8/kf+yP8v8KgtQ\nOhbML1n/l4HnyBERofduYDfFSugzPKYY9TzLd1TKv8IQgoX9lzjvrItzv5Jw\n4J42tRi8C7zs/OrvLvdkA4AVx8VInXGOBCTlh9lyiCOz1wFpJo2a0ILQiQYs\nFJ5B1MQq5NWgwejQuqRaE2BBEHLcQX89L8BmrmGgrswBkefhJResFQQ5Mwea\nQ4SQoEBjsWxIMTTeCToV9RPSreQHtL8/0bCETcPdv4yISvq8Hpl1TFy2tJPb\nKcEFhVzcNIxdO7ZPFwMDl9nZnZuo1gRWdw/n6mcCcXn6LQlKubca0Wa8QaQj\nZCPkAbtb9wg/It9JqMpAbduCRICJOjEpWXRV0dOQkj1JjLI5fDQvYZjr6op1\no6fwwAZyEf5GFGY4sBzwP1myjZ6uWlN66bagIdMgIs7nRO1u5W4w+5Q+6CnJ\nJtOqT2vBV5ejCDamIvw7K2NuTmjBwMAn9P9R6mE1jGtwB28WZNStJ2hS6e+8\n23qD\r\n=wI07\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDOQQw2vQv325ayCZNEyxvFlwyIjRaXadO3nZ2dYnMiVAiAK+cvHQOpmaR/C5U3RVuM02cfL1Ic3rMAX4z31c5QY2g=="}]},"_npmUser":{"name":"animaker","email":"info@animaker.com"},"directories":{},"maintainers":[{"name":"animaker","email":"info@animaker.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macos-audio-devices_1.1.0_1608119491166_0.28623571538605574"},"_hasShrinkwrap":false},"1.2.0":{"name":"@animaker/macos-audio-devices","version":"1.2.0","description":"Get, set and configure the audio devices on macOS","repository":{"type":"git","url":"git+https://github.com/karaggeorge/macos-audio-devices.git"},"funding":"https://github.com/sponsors/karaggeorge","author":{"name":"George Karagkiaouris","email":"gkaragkiaouris2@gmail.com","url":"https://gkaragkiaouris.tech"},"bin":{"macos-audio-devices":"audio-devices","audio-devices":"audio-devices"},"private":false,"license":"MIT","scripts":{"test":"xo && tsd","build":"swift build --configuration=release && mv .build/release/audio-devices .","prepublishOnly":"npm run build"},"keywords":["macos","swift","audio","devices","input","output","volume","mute","microphone","speaker","list","default"],"engines":{"node":">=8"},"dependencies":{"electron-util":"^0.13.1","execa":"^4.0.0","macos-version":"^5.2.0"},"devDependencies":{"tsd":"^0.11.0","xo":"^0.25.3"},"xo":{"space":2},"gitHead":"6105f0f2a911e7ccb6c11dbaba9de3de736f4552","bugs":{"url":"https://github.com/karaggeorge/macos-audio-devices/issues"},"homepage":"https://github.com/karaggeorge/macos-audio-devices#readme","_id":"@animaker/macos-audio-devices@1.2.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ehFfqsgIS17xRjDYjdTUxCwRn5nEwMjfUji4PTE+oKixvO54p5p7kYGHihpoX5/TCRFwHYdQ8K8p3S+uTaVyPw==","shasum":"47b9017ea6e91f89091a907fe75fe560cde11299","tarball":"https://registry.npmjs.org/@animaker/macos-audio-devices/-/macos-audio-devices-1.2.0.tgz","fileCount":6,"unpackedSize":1100794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2fXiCRA9TVsSAnZWagAA5n4P/2/d11FSFyGU6swud64X\nM2YLyQd5GP3SLzqR0uRnFrYEGaeVT2OV2U26DoSt/jqHZ+uUD7CQTut7qOnA\nQQZ6h8SYyqQYd/VffR7EhMEonn2NxUDoGWy0P8pS+ePsR0KVr/MbyZWSeAYf\ntiEZcqhDTtK0QUSQvpEuTgv/mQLq3vAAXLVcjPQLzNLWOs3Gji6vHmVi5clW\nNf+DVz7TRvXetxBpDIz2qkftpMscqpwaQoCHD+5+154Z05T1z4i8Kva9LxEu\n3v28diTWUQ9qImTUm9XaS3jq28roYLOrTbaeWHoW5ktaFDSW2qXBGlPxsn/H\n0RGE84oTvn1GT6txe8gBj3xlwYV77BFw9qy6DXPbw3TftoMjZiKPLZVWaV2F\nkXCoLPN/DZU9m4CTAo1gh6KE+AcGlnaz5d4lCoj+5dX2CsTveQlQB99bsx6J\nYzk2EaNx1MA9sedxYLjp2viGabn19eGZgtwpv2T9VuV76oGSpf2rLKQWuXwB\nwfod9nTErQGF9AW7OTdIYptcflVkz1wDW7U4Uuzq5+G4mzWQf6hVQJzDFw5a\nrNVRNtDYd7u/bAeYNjCt2BQXC3d+klQNGToIT/YPipLQau/UJocv9d0Kk31l\ng/6m3/kCW27zDsDW1jRpepeX9QN8GYgbOYO8Y23CAVRX/BpNHe0EQPDc9mMu\nIkn5\r\n=4XYy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxMZWzZx33SOVKrKRE5LpPpeF92g3C5EkfwAKct5eIlQIgM2lxK/21VlCUbPhyl2wvuKLCrhUTXFbHepzw2iy2mbE="}]},"_npmUser":{"name":"animaker","email":"info@animaker.com"},"directories":{},"maintainers":[{"name":"animaker","email":"info@animaker.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macos-audio-devices_1.2.0_1608119777872_0.9560683012781603"},"_hasShrinkwrap":false},"1.3.0":{"name":"@animaker/macos-audio-devices","version":"1.3.0","description":"Get, set and configure the audio devices on macOS","repository":{"type":"git","url":"git+https://github.com/karaggeorge/macos-audio-devices.git"},"funding":"https://github.com/sponsors/karaggeorge","author":{"name":"George Karagkiaouris","email":"gkaragkiaouris2@gmail.com","url":"https://gkaragkiaouris.tech"},"bin":{"macos-audio-devices":"audio-devices","audio-devices":"audio-devices"},"private":false,"license":"MIT","scripts":{"test":"xo && tsd","build":"swift build --configuration=release && mv .build/release/audio-devices ."},"keywords":["macos","swift","audio","devices","input","output","volume","mute","microphone","speaker","list","default"],"engines":{"node":">=8"},"dependencies":{"electron-util":"^0.13.1","execa":"^4.0.0","macos-version":"^5.2.0"},"devDependencies":{"tsd":"^0.11.0","xo":"^0.25.3"},"xo":{"space":2},"gitHead":"6105f0f2a911e7ccb6c11dbaba9de3de736f4552","bugs":{"url":"https://github.com/karaggeorge/macos-audio-devices/issues"},"homepage":"https://github.com/karaggeorge/macos-audio-devices#readme","_id":"@animaker/macos-audio-devices@1.3.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-yWhRNRPdNa9dXOOwKMvvw7nsbJjsc/uVy+qTvLM6WK7VLSoNVUHK3cOIzrbImyFCfmhz16EDoNmbO4fEG4jcVQ==","shasum":"a76538314b1cd624338471c5866aa4cd9135c425","tarball":"https://registry.npmjs.org/@animaker/macos-audio-devices/-/macos-audio-devices-1.3.0.tgz","fileCount":6,"unpackedSize":870891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2fyoCRA9TVsSAnZWagAA2AYP/3EejDK8MqVBKTKOCX0x\nxQ6bs3y4SzBvRsvBtVwiFTJvFo8b1Bby+Oi4nbY1wqhbJzcrhwz4k55zX33K\n5HhjiF+PqE0e7lkQsdJrksqdL9RddRT6l5orRi6zyEtEj3Ii/mhT/XeKMwDQ\njvQeaklzPi+F9ELE0Ma9aLvXNb7r9WGM+n5Cd5yrCYxgaL+CyuLuWDXTR6+Y\n4HGXyTv847aMOuS9fAeCdm6pw4BWgOmUeJIb7L9I0z9pru4RpvGUP8zgo09K\ntwTABHogcXhwqgD+I9eJ1iGn4Hhei2BREymPx6H4DVbsaId4dU5QUV4pNXzn\ndDratrNI/yaOrCLOBVTWHvgiBMq8KSG1F7qNqqyRPAUDHFE8ESn5T9fOPBn8\nw3+ExzoJCUHtogJlab1x06EkZi4oE3uAPUTaggLVx2veCc+fL/3J5v7ymJSv\nxic33c3b+Si4DON4AgyGCwJG82pIlkBhGguHP7L+dP65YuO1BHFUs3a1kM92\ngzXGtc6DT3os64rcWbNwc5IJlX/V9PzNf6477+XGdk/VBzsaSgKDNXzCklMQ\nZxpIAgmgNDgQ0MdU4kZfXTOkgJjQZspebBF8HQXg6jngjX0CdrUvZAkKFIxh\nnDRSqmZVGlaZdcJvtfSfXF1a8PIax0Xe+/O1AdFP0cK0AZilT1SefGou0kIX\nGvWw\r\n=K+gH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGKlI7cNYp6l7wkqWIk0tZeL7Tngzaj+bN8SEtF4mGEsAiA2W7WLgPScOhF/nHNuhUGAiXnGQItwBzfpTsV5wqE14g=="}]},"_npmUser":{"name":"animaker","email":"info@animaker.com"},"directories":{},"maintainers":[{"name":"animaker","email":"info@animaker.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macos-audio-devices_1.3.0_1608121511956_0.3367743919191841"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-14T05:30:10.949Z","1.0.0":"2020-10-14T05:30:11.233Z","modified":"2022-04-04T14:11:03.154Z","1.1.0":"2020-12-16T11:51:31.352Z","1.2.0":"2020-12-16T11:56:18.048Z","1.3.0":"2020-12-16T12:25:12.149Z"},"maintainers":[{"name":"animaker","email":"info@animaker.com"}],"description":"Get, set and configure the audio devices on macOS","homepage":"https://github.com/karaggeorge/macos-audio-devices#readme","keywords":["macos","swift","audio","devices","input","output","volume","mute","microphone","speaker","list","default"],"repository":{"type":"git","url":"git+https://github.com/karaggeorge/macos-audio-devices.git"},"author":{"name":"George Karagkiaouris","email":"gkaragkiaouris2@gmail.com","url":"https://gkaragkiaouris.tech"},"bugs":{"url":"https://github.com/karaggeorge/macos-audio-devices/issues"},"license":"MIT","readme":"# macos-audio-devices [![Actions Status](https://github.com/karaggeorge/macos-audio-devices/workflows/Node%20CI/badge.svg)](https://github.com/karaggeorge/macos-audio-devices/actions)\n\n> Get, set and configure the audio devices on macOS\n\nRequires macOS 10.12 or later. macOS 10.13 or earlier needs to download the [Swift runtime support libraries](https://support.apple.com/kb/DL1998).\n\n## Run as CLI\n\n### Using [npx](https://github.com/npm/npx)\n\n```\n$ npx macos-audio-devices\n```\n\n### Installing\n\n```\n$ npm install -g macos-audio-devices\n$ audio-devices\n```\n\n### Usage\n\n```\nUsage: audio-devices <command> [options]\n\nGroups:\n  output          Get or set the default output device\n  input           Get or set the default input device\n  system          Get or set the default device for system sounds\n  volume          Get or set the volume of an output device\n  aggregate       Create or delete aggregate audio devices\n\nCommands:\n  list            List the available audio devices\n  get             Get a device by its ID\n  help            Prints help information\n```\n\n## Node API\n\n### Installation\n\n```\n$ npm install macos-audio-devices\n```\n\n### Usage\n\n```js\nconst audioDevices = require('macos-audio-devices');\n\nconst outputDevices = audioDevices.getOutputDevices.sync();\nconst targetDevice = outputDevices[0];\n\nconst defaultDevice = audioDevices.getDefaultOutputDevice.sync();\n\nif (defaultDevice.id !== targetDevice.id) {\n  setDefaultOutputDevice(targetDevice.id)\n}\n\nif (targetDevice.hasVolume) {\n  setOutputDeviceVolume(targetDevice.id, 0.5); // 50%\n}\n```\n\n### API\n\n#### `Device`\n\n##### `id: number`\n\nThe unique ID of the device.\n\n##### `uid: string`\n\nThe UID of the device for the [`AVCaptureDevice`](https://developer.apple.com/documentation/avfoundation/avcapturedevice) API.\n\n##### `name: string`\n\nThe human readable name of the device.\n\n##### `isOutput: bool`\n\nWhether the device is an output device.\n\n##### `isInput: bool`\n\nWhether the device is an input device.\n\n##### `volume: number`\n\nA number between 0 and 1 representing the volume setting of the device. Only applicable on output devices that support it. It will be undefined otherwise.\n\n##### `transportType: TransportType`\n\nThe value of this property represents the [transport type](https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387804-transporttype) of the device (USB, PCI, etc).\n\n#### `TransportType: string`\n\nCan be one of:\n- `avb`\n- `aggregate`\n- `airplay`\n- `autoaggregate`\n- `bluetooth`\n- `bluetoothle`\n- `builtin`\n- `displayport`\n- `firewire`\n- `hdmi`\n- `pci`\n- `thunderbolt`\n- `usb`\n- `virtual`\n- `unknown`\n\n#### Sync\n\nEach method described below is asynchronous, but can be called synchronously, by calling `.sync` on it instead. For example:\n\n```js\ngetDevice(73).then(device => {…}); // async\n\nconst device = getDevice.sync(73); // sync\n```\n\n#### `getAllDevices(): Promise<Device[]>`\n\nGet all the audio devices.\n\n#### `getOutputDevices(): Promise<Device[]>`\n\nGet all the output devices.\n\n#### `getInputDevices(): Promise<Device[]>`\n\nGet all the input devices.\n\n#### `getDevice(deviceId: number): Promise<Device>`\n\nGet an audio device by its ID.\n\n##### `deviceId: number`\n\nThe [unique ID](#id-number) of the device.\n\n#### `getDefaultOutputDevice(): Promise<Device>`\n\nGet all the default output device.\n\n#### `getDefaultInputDevice(): Promise<Device>`\n\nGet all the default input device.\n\n#### `getDefaultSystemDevice(): Promise<Device>`\n\nGet all the default input device.\n\n#### `setDefaultOutputDevice(deviceId: number): Promise<void>`\n\nSet the default output device.\n\n##### `deviceId: number`\n\nThe [unique ID](#id-number) of an output device.\n\n#### `setDefaultInputDevice(deviceId: number): Promise<void>`\n\nSet the default input device.\n\n##### `deviceId: number`\n\nThe [unique ID](#id-number) of an input device.\n\n#### `setDefaultSystemDevice(deviceId: number): Promise<void>`\n\nSet the default input device. Can only be an output device.\n\n##### `deviceId: number`\n\nThe [unique ID](#id-number) of an output device.\n\n#### `getOutputDeviceVolume(deviceId: number): Promise<void>`\n\nGet the volume level of an output device that [supports it](#volume-number).\n\nThrows an error if the device is not an output device or if it doesn't support volume.\n\n##### `deviceId: number`\n\nThe [unique ID](#id-number) of the supported output device.\n\n#### `setOutputDeviceVolume(deviceId: number, volume: number): Promise<void>`\n\nSet the volume level of an output device that [supports it](#volume-number).\n\nThrows an error if the device is not an output device or if it doesn't support volume.\n\n##### `deviceId: number`\n\nThe [unique ID](#id-number) of the supported output device.\n\n##### `volume: number`\n\nThe volume level to set the device to. Must be between 0 and 1, otherwise and error will be thrown.\n\n#### `createAggregateDevice(name: string, mainDeviceId: number, otherDeviceIds: number[], options: object): Promise<Device>`\n\nCreate an [aggregate device](https://support.apple.com/en-us/HT202000) from other existing devices.\n\nNote that aggregate devices do not support volume, so make sure to update the volume on the devices used to create it instead.\n\n##### `name: string`\n\nHuman-readable name for the new device.\n\n##### `mainDeviceId: number`\n\nThe [unique ID](#id-number) of the main device.\n\n##### `otherDeviceIds: number[]`\n\nAn array od [unique IDs](#id-number) of the rest of the devices. Needs to have at least one.\n\n##### `options: object`\n\n###### `options.multiOutput: boolean`\n\nWhether or not to create a [Multi-Output Device](https://support.apple.com/guide/audio-midi-setup/play-audio-through-multiple-devices-at-once-ams7c093f372/mac).\n\nIf this is enabled, all the devices need to be output devices.\n\n#### `destroyAggregateDevice(deviceId: number): Promise<void>`\n\nDestroy an aggregate device.\n\n##### `deviceId: number`\n\nThe [unique ID](#id-number) of an aggregate device.\n\n## Contributing\n\nIf you want to use this and need more features or find a bug, please open an issue and I'll do my best to implement.\n\nPRs are always welcome as well 😃\n","readmeFilename":"readme.md"}