Apple - Can not select Airplay Device in OSX

There is command line solution that I've found in Mac Rumors

sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`

Which can assigned to an alias:

alias fixairplay="sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`"

Then this command fixes the issue:

fixairplay

What you need to do is to restart the coreaudio deamon (coreaudiod). Open up the terminal and run sudo killall coreaudiod. As simple as that.

Then if you're having a difficult time memorizing the above, you can add the following line to ~/.bash_profile

alias fixairplay='sudo killall coreaudiod'

From now on you can just use the alias fixairplay.


Inspired from Mohsen, but simplified by using pgrep.

sudo kill `pgrep coreaudio`

pgrep's reason for existence is to avoid parsing ps output and is much safer to use when being sent to kill, IMHO cause you are less likely to grab the wrong process info.

Anyway, the accepted answer worked great (Mavericks).

pgrep @ wikipedia (man is waaay too obscure)

Tags:

Airplay