Created
December 10, 2016 19:09
-
-
Save rahulsom/9def705d16b8995ebdefe731d5d19e5a to your computer and use it in GitHub Desktop.
Restart Audio Daemon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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