Can't stream audio from OSX Mavericks to Apple TV 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:

sudo pkill coreaudiod