projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df5e0b8
)
Added script to lower volume of sounds by 6db as requested by remaxim (might need...
author
Ingo Ruhnke
<grumbel@gmx.de>
Sun, 18 Apr 2010 13:55:55 +0000
(13:55 +0000)
committer
Ingo Ruhnke
<grumbel@gmx.de>
Sun, 18 Apr 2010 13:55:55 +0000
(13:55 +0000)
SVN-Revision: 6636
data/sounds/normalize.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/data/sounds/normalize.sh
b/data/sounds/normalize.sh
new file mode 100755
(executable)
index 0000000..
ef8a045
--- /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 #