deweller / switchaudio-osx

Change the audio source for Mac OS X from the command line.
Other
1.16k stars 88 forks source link

UIDs returned by -a don't work with -u #56

Open Sigafoos opened 1 year ago

Sigafoos commented 1 year ago

The UIDs were added in #52 (and thank you for that!), but the UIDs being displayed don't seem to work when setting with -u:

❯ switchaudiosource -c -f json
{"name": "MacBook Pro Speakers", "type": "output", "id": "75", "uid": "BuiltInSpeakerDevice"}
❯ switchaudiosource -u BuiltInSpeakerDevice
Could not find an audio device with UID "BuiltInSpeakerDevice" of type output.  Nothing was changed.