diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2014-12-20 11:40:41 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2015-02-13 09:30:39 +1100 |
commit | 7ef7b58f04adf03b561b281e2df039a960020015 (patch) | |
tree | b3c4083958c1a87d8ada1b31bc8f9790685e4dd8 /test/test_replaygain.sh | |
parent | 875be0ada54aa6cd24ef57a890f6f454399f4409 (diff) | |
download | flac-7ef7b58f04adf03b561b281e2df039a960020015.tar.gz |
test/test_replaygain.sh : Minor cleanup.
* Pipe un-needed strerr output to /dev/null.
* Pass --silent and --no-seektable to the flac executable.
* When generating tones, use --output-name=....
Diffstat (limited to 'test/test_replaygain.sh')
-rwxr-xr-x | test/test_replaygain.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test_replaygain.sh b/test/test_replaygain.sh index eb0b0ef9..4496fa64 100755 --- a/test/test_replaygain.sh +++ b/test/test_replaygain.sh @@ -73,7 +73,7 @@ check_flac () echo "Generating stream..." bytes=80000 -if dd if=/dev/zero ibs=1 count=$bytes | flac${EXE} --force --verify -0 --input-size=$bytes --output-name=$flacfile --force-raw-format --endian=big --sign=signed --channels=1 --bps=8 --sample-rate=8000 - ; then +if dd if=/dev/zero ibs=1 count=$bytes 2>/dev/null | flac${EXE} --silent --force --verify -0 --input-size=$bytes --output-name=$flacfile --force-raw-format --endian=big --sign=signed --channels=1 --bps=8 --sample-rate=8000 - ; then chmod +w $flacfile else die "ERROR during generation" @@ -128,7 +128,8 @@ tonegenerator () } }' /dev/null | - flac${EXE} --silent --no-error-on-compression-fail --force-raw-format \ + flac${EXE} --force --output-name=$2 \ + --silent --no-seektable --no-error-on-compression-fail --force-raw-format \ --endian=big --channels=1 --bps=24 --sample-rate=$1 --sign=unsigned - } @@ -168,7 +169,7 @@ for ACTION in $REPLAYGAIN_FREQ ; do RATE=$(($MULTIPLE * FREQ)) [ $MULTIPLE -eq 1 -o -n "${REPLAYGAIN_FREQ##* $RATE/*}" ] || break echo -n "Testing FLAC replaygain $RATE ($FREQ x $MULTIPLE) ... " - tonegenerator $RATE > $flacfile + tonegenerator $RATE $flacfile run_metaflac --add-replay-gain $flacfile run_metaflac --list $flacfile | grep REPLAYGAIN.*GAIN= | while read -r REPLAYGAIN ; do |