Unverified Commit 36557839 authored by norvell's avatar norvell
Browse files

Add bat script for Windows

parent 969f0fb1
Loading
Loading
Loading
Loading

run_bs1770demo.bat

0 → 100644
+28 −0
Original line number Diff line number Diff line
@echo off
setlocal enabledelayedexpansion

set files[0]=stv48c.wav
set files[1]=stvST48c.wav
set files[2]=stv51MC48c.wav
set files[3]=stv512MC48c.wav
set files[4]=stv514MC48c.wav
set files[5]=stv71MC48c.wav
set files[6]=stv714MC48c.wav

set nchan[0]=1
set nchan[1]=2
set nchan[2]=6
set nchan[3]=8
set nchan[4]=10
set nchan[5]=8
set nchan[6]=12

set OUTPUT=result.txt
del /f %OUTPUT% 2>nul

for /L %%i in (0,1,6) do (
    CopyAudio.exe -F noheader scripts\testv\!files[%%i]! tmp.raw
    for /f "tokens=*" %%a in ('bs1770demo.exe -nchan !nchan[%%i]! tmp.raw ^| findstr /b /c:"Input level:"') do (
        echo %%a >> %OUTPUT%
    )
)
 No newline at end of file