Basic MacOS swift application fix is needed, to toggle audio output between two options

Mbyllur Postuar 2 vite mё parё Paguhet në dorëzim
Mbyllur Paguhet në dorëzim

Hello,

You must have experience in writing MacOS swift. I have this basic script that I found, and it does 95% of the work. Just need to fix the naming of the interface.

Here's what I'm looking for:

I have about 10 output audio interfaces on my Mac, but I only care about 2:

1) my digital-audio box->headset

2) "Line Out", which is connected to my speakers.

the problem with Line Out is that I have two identically named output interfaces.

I have a full-size Mac keyboard, with F keys up to F19. I would like to connect one of the available keys to this toggle script, so that, upon pressing the key, the interface switches from one to two, and from two back to one.

Found this application that works really well, unfortunately the only issue is that it cannot distinguish between two Line Out, one of which works, another does not, and the application always tries to select the one that does not work. So, I would like to hard-code the interface name based on some other criteria, like an ID of some sort.

Source code is here:

[login to view URL]

Objective C Swift Mac OS

ID Projekti: #32231293

Rreth projektit

3 propozimet Projekti në distancë Aktiv 2 vite mё parё

3 profesionistë freelancer dërguan një ofertë mesatare prej $73 për këtë punë

ariazare

Hello, I can create your audio output switch in a few days. Contact me to. discuss your app in detals. Looking forward to working with you!

$70 USD për 2 ditë
(7 Përshtypje)
3.4