Crossfire baudrate selection for X7 support ( fixes #4922 ) (#5194)
[opentx.git] / radio / util / maxvolume.cmd
blobb3b24c9ccda06c2b8678b8ebb898418efb8ad10f
1 echo off
4 echo Getting max amplitude..
5 sox %1.wav -n stat -v 2> %1_apl.txt
6 Set /P apl_value= < %1_apl.txt
8 echo Normalizing audio.. gain: %apl_value%
9 sox --show-progress -v %apl_value% %1.wav %1_norm.wav
11 copy %1_norm.wav %1.wav
13 echo Cleaning..
14 del %1_norm.wav
15 del %1_apl.txt