TobiasMende / alfred-audio-switcher

Alfred Workflow for Quickly Switching Audio Input and Output Devices
10 stars 1 forks source link

Airplay audio source does not show up when not connected #2

Open I542880 opened 3 months ago

I542880 commented 3 months ago

Hello @TobiasMende, first of all, This is a great workflow. Thank you for your work.

I have a airplay audio that I wish to switch between time to time, but I've found out that if airplay is not enabled, audio switcher does not show it, even when it is avaiable from a system setting -> Sound -> Output & Input

Screenshot 2024-03-18 at 5 29 34 PM

Screenshot 2024-03-18 at 5 26 50 PM Screenshot 2024-03-18 at 5 26 43 PM

If I enable airplay manually, workflow successfully shows the Airplay as a current selected output device. Would it be possible to search and select for the waiting Airplay devices for a getAudioDeviceList?

Screenshot 2024-03-18 at 5 26 31 PM

TobiasMende commented 3 months ago

Thank you for the report @I542880 🙏 I will take a look into it. I don't have an AirPlay device, so not sure if I can reproduce it.

It seems to be a known issue with the API I am using to retrieve the list. Maybe I can find a workaround.

Which OS X version are you using?

LazyRen commented 3 months ago

Hello @TobiasMende, thank you for a prompt response, I'm on a using OS 14.4 ATM.

From what I have searched, it seems there is no public API to help detect/enable AirPlay and it seems this is intentional design choice. Please let me know if you find a workaround, so I may help you on reproducing the issue :)

TobiasMende commented 2 months ago

Hi @LazyRen – I do not know any workarounds at the moment and also cannot test it due to not having an AirPlay device. I will keep this open and tag it with "help wanted". Maybe somebody else knows how to include AirPlay devices and can test this.