Lately, when I click in "Apple TV" (trying to select it as default sound output), OSX changes it back to "Internal Speakers".

|
|
|
much simpler command:
|
|||
|
|
|
Just had this problem myself, and this solution worked for me: Open a terminal and kill the audio driver, it will restart and everything should work straight away.
|
|||||||||
|
|
|
|||
|
|
|
Disable and enable wifi. This avoids killing coreaudiod. |
|||
|
|