Music post sound now works.

This commit is contained in:
Storm Dragon 2024-05-11 20:52:52 -04:00
parent 2e8bb5961a
commit 220d5c3d30

View File

@ -61,11 +61,12 @@ play_sound() {
fi
soundName="$*"
declare -A sounds=(
[error]="|sox -n -p synth saw E2 fade 0 0.25 0.05 repeat"
[error]="|sox -n -p synth saw E2 fade 0 0.25 0.05 repeat norm -7"
[music]="|sox -np synth pl E2 pl B2 overdrive 100 remix - overdrive 100 fade h .25 1 .25 norm -11"
[post]='|sox -np synth .05 tri C2:C7'
)
if [[ -n "${sounds[${soundName}]}" ]]; then
sox -qV0 "${sounds[${soundName}]}" -d norm -9 &> /dev/null &
sox -qV0 "${sounds[${soundName}]}" -d gain -9 &> /dev/null &
fi
}
@ -130,7 +131,7 @@ post_music() {
exit 1
fi
echo "Music posted!"
play_sound post_music
play_sound music
}