From: Rudolf Polzer Date: Thu, 5 Jul 2012 13:03:56 +0000 (+0200) Subject: findloop fixes X-Git-Tag: xonotic-v0.7.0~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0ff6a54f52b894b104c15728a74a9c056469e847;p=xonotic%2Fmediasource.git findloop fixes --- diff --git a/sound/weapons/loopfinder/findloop.sh b/sound/weapons/loopfinder/findloop.sh index ebbdb20..b71aeb2 100755 --- a/sound/weapons/loopfinder/findloop.sh +++ b/sound/weapons/loopfinder/findloop.sh @@ -4,11 +4,12 @@ infile=$1 outfile=$2 end=$3 guess=$4 -fftsize=${5:-32768} +guess2=$5 +fftsize=${6:-32768} -gcc -o findloop findloop.c -lfftw3 -Wall -Wextra -ffast-math -lsndfile -O3 -./findloop "$infile" "$fftsize" "$end" "$guess" temp.wav | while read -r SAMPLES SECONDS; do - oggenc -q 3 -o "$outfile" -c LOOP_START=$SAMPLES temp.wav +gcc -o findloop findloop.c -lfftw3 -Wall -Wextra -ffast-math -lsndfile -lm -O3 +./findloop "$infile" "$fftsize" "$end" "$guess" "$guess2" temp.wav | while read -r SAMPLES SECONDS; do + oggenc -q 10 -o "$outfile" -c LOOP_START=$SAMPLES temp.wav rm -f temp.wav echo "To repeat, seek to $SAMPLES" vorbisgain "$outfile"