Skip to content

Commit

Permalink
Sleep before switching devices, kill coreaudiod to force device re-en…
Browse files Browse the repository at this point in the history
…umeration
  • Loading branch information
padenot committed Feb 28, 2025
1 parent a6879ed commit 1bccac9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
run: |
brew install switchaudio-osx
brew install blackhole-2ch
sudo kill -9 `pgrep coreaudiod`
sleep 10
SwitchAudioSource -s "BlackHole 2ch" -t input
SwitchAudioSource -s "BlackHole 2ch" -t output
Expand Down

0 comments on commit 1bccac9

Please sign in to comment.