From d9b9d2ef38740d8490eb5a476a6eae298de264c2 Mon Sep 17 00:00:00 2001 From: grumbel Date: Sun, 18 Apr 2010 13:55:55 +0000 Subject: [PATCH] Added script to lower volume of sounds by 6db as requested by remaxim (might need some further discussion if we really want to do this) git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6636 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- data/sounds/normalize.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 data/sounds/normalize.sh diff --git a/data/sounds/normalize.sh b/data/sounds/normalize.sh new file mode 100755 index 000000000..ef8a04582 --- /dev/null +++ b/data/sounds/normalize.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +OUTPUTDIR="6db-less" + +mkdir "$OUTPUTDIR" + +for i in *.wav; do + cp -vi "$i" "${OUTPUTDIR}/${i}" + normalize-audio -g -6db "${OUTPUTDIR}/${i}" +done + +for i in *.ogg; do + oggdec "$i" -o "${OUTPUTDIR}/${i%%.ogg}.wav" + normalize-audio -g -6db "${OUTPUTDIR}/${i%%.ogg}.wav" + oggenc "${OUTPUTDIR}/${i%%.ogg}.wav" + rm "${OUTPUTDIR}/${i%%.ogg}.wav" +done + +# EOF # -- 2.11.0