deweller / switchaudio-osx

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

[issue] Not detecting airplay devices #63

Open yizhoucc opened 11 months ago

yizhoucc commented 11 months ago

On macbook M1 macos 14.1: SwitchAudioSource -a won't include available airplay devices even if they are shown in menu bar airplay destinations and audio outputs. However, when already connected to an airplay speaker, SwitchAudioSource -a shows everything correctly, till I run SwitchAudioSource -s to switch off from that airplay. Any ideas? thx!

jeff1985 commented 8 months ago

The same for me. Also I can not switch to Airplay via cli:

SwitchAudioSource -s AirPlay

it fails

image
nitras commented 1 month ago

Same for me.

Running an AirPlay device, and doing SwitchAudioSource -a or SwitchAudioSource -c displays the Airplay Device (note: it display "AirPlay" not the name you gave it —fe: HomePod Living Area

However while running on MacBook Pro speakers and running SwitchAudioSource -a → it does not displays the AirPlay device.

Using SwitchAudioSource on internal output sources such as speakers to headphones, works fine. Hope this can be resolved. Good Luck!