Unverified Commit 969f0fb1 authored by norvell's avatar norvell
Browse files

Add script run_bs1770demo.bash to test the bs1770demo tool

parent 8a5cfa2c
Loading
Loading
Loading
Loading

run_bs1770demo.bash

0 → 100644
+16 −0
Original line number Diff line number Diff line
#!/bin/bash -x

files=(stv48c.wav stvST48c.wav stv51MC48c.wav stv512MC48c.wav stv514MC48c.wav stv71MC48c.wav stv714MC48c.wav)
nchan=(1 2 6 8 10 8 12)
Nconf=7
i=0

OUTPUT=result.txt

rm -f $OUTPUT

while [ $i -lt $Nconf ]; do
    CopyAudio -F noheader scripts/testv/${files[i]} tmp.raw
    bs1770demo.exe -nchan ${nchan[i]} tmp.raw | grep "Input level:" >> $OUTPUT
    i=$(($i+1))
done
 No newline at end of file