Skip to content

Instantly share code, notes, and snippets.

@rahulsom
Created December 10, 2016 19:09
Show Gist options
  • Save rahulsom/9def705d16b8995ebdefe731d5d19e5a to your computer and use it in GitHub Desktop.
Save rahulsom/9def705d16b8995ebdefe731d5d19e5a to your computer and use it in GitHub Desktop.
Restart Audio Daemon
# All this comes from https://twitter.com/viktorklang/status/807629003385237504
function restart_audio() {
command sudo killall coreaudiod && \
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist && \
sudo launchctl load /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist || \
return
echo 'Audio daemon restarted'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment