Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
cc78fb57
Commit
cc78fb57
authored
May 03, 2001
by
Josh Coalson
Browse files
fix script to work with new flac command line
parent
6904e6a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_streams.sh
View file @
cc78fb57
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment