Skip to content

Instantly share code, notes, and snippets.

@felipecsl
Last active May 17, 2024 22:17
Show Gist options
  • Save felipecsl/5177790 to your computer and use it in GitHub Desktop.
Save felipecsl/5177790 to your computer and use it in GitHub Desktop.
Restart Mac OS X coreaudio daemon. Useful if you cannot change the audio output device to Airplay.
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
# or...
sudo killall coreaudiod
@skowalak
Copy link

skowalak commented Apr 17, 2024

@luckman212 , @crunk1
There is a reference in the macOS Release Notes about this, seems like it is no longer possible to kickstart coreaudiod.

https://developer.apple.com/documentation/macos-release-notes/macos-14_4-release-notes#Core-Audio

If you are unable to uninstall blackhole-2ch because the uninstall_postflight fails you could try changing the postflight command in the following file <homebrew prefix>/Caskroom/blackhole-2ch/.metadata/<version>/<timestamp>/Casks/blackhole-2ch.rb to use a different command or no command at all. Since version 0.6.0 the new behavior is reflected in blackhole-2ch homebrew package.

@aokie
Copy link

aokie commented Apr 23, 2024

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment