2020-10-23 17:59:08 +03:00
|
|
|
#!/bin/bash -e -o pipefail
|
2020-12-28 10:54:25 +03:00
|
|
|
source ~/utils/utils.sh
|
2020-09-10 14:34:08 +03:00
|
|
|
|
|
|
|
|
echo "install switchaudio-osx"
|
2020-12-28 10:54:25 +03:00
|
|
|
brew_smart_install "switchaudio-osx"
|
2020-09-10 14:34:08 +03:00
|
|
|
|
|
|
|
|
echo "install sox"
|
2020-12-28 10:54:25 +03:00
|
|
|
brew_smart_install "sox"
|
2020-09-10 14:34:08 +03:00
|
|
|
|
2021-06-08 10:44:31 +03:00
|
|
|
# Big Sur doesn't support soundflower installation without user interaction https://github.com/mattingalls/Soundflower/releases/tag/2.0b2
|
|
|
|
|
# Install blackhole-2ch for Big Sur instead
|
2021-12-30 10:36:59 +03:00
|
|
|
if is_Catalina; then
|
2021-06-08 10:44:31 +03:00
|
|
|
echo "install soundflower"
|
|
|
|
|
brew install --cask soundflower
|
|
|
|
|
|
|
|
|
|
echo "set Soundflower (2ch) as input/output device"
|
|
|
|
|
SwitchAudioSource -s "Soundflower (2ch)" -t input
|
|
|
|
|
SwitchAudioSource -s "Soundflower (2ch)" -t output
|
|
|
|
|
else
|
|
|
|
|
echo "install blackhole-2ch"
|
|
|
|
|
brew_smart_install "blackhole-2ch"
|
|
|
|
|
|
|
|
|
|
echo "set BlackHole 2ch as input/output device"
|
|
|
|
|
SwitchAudioSource -s "BlackHole 2ch" -t input
|
|
|
|
|
SwitchAudioSource -s "BlackHole 2ch" -t output
|
|
|
|
|
fi
|
2020-12-17 19:37:19 +07:00
|
|
|
|
2021-01-29 16:37:48 +07:00
|
|
|
invoke_tests "System" "Audio Device"
|