Commit cc78fb57 authored by Josh Coalson's avatar Josh Coalson
Browse files

fix script to work with new flac command line

parent 6904e6a8
......@@ -18,18 +18,18 @@ test_file ()
encode_options="$4"
echo -n "$name: encode..."
cmd="flac -V -s -fr -fb -fs 44100 -fp $bps -fc $channels $encode_options $name.raw $name.flac"
cmd="flac -V -s -fr -fb -fs 44100 -fp $bps -fc $channels $encode_options $name.raw"
echo "### ENCODE $name #######################################################" >> ./streams.log
echo "### cmd=$cmd" >> ./streams.log
if $cmd 1>/dev/null 2>>./streams.log ; then : ; else
if $cmd 2>>./streams.log ; then : ; else
echo "ERROR during encode of $name" 1>&2
exit 1
fi
echo -n "decode..."
cmd="flac -s -fb -d -fr $name.flac $name.cmp";
cmd="flac -s -fb -d -fr -c $name.flac"
echo "### DECODE $name #######################################################" >> ./streams.log
echo "### cmd=$cmd" >> ./streams.log
if $cmd 2>>./streams.log ; then : ; else
if $cmd > $name.cmp 2>>./streams.log ; then : ; else
echo "ERROR during decode of $name" 1>&2
exit 1
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment