]> de.git.xonotic.org Git - xonotic/mediasource.git/blob - sound/weapons/loopfinder/playloop.sh
improved loopfinder algorithm
[xonotic/mediasource.git] / sound / weapons / loopfinder / playloop.sh
1 #!/bin/sh
2
3 n=`vorbiscomment "$1" | grep LOOP_START= | cut -d = -f 2`
4
5 sox "$1" temp.wav trim "$n"s
6 play --combine concatenate "$1" temp.wav temp.wav temp.wav temp.wav temp.wav temp.wav temp.wav
7 rm -f temp.wav