1 # To the extent possible under law, Eric Wong has waived all copyright and
2 # related or neighboring rights to this example.
3 # Note: be sure to update test/test_trimfx.rb if you change this,
4 # test_trimfx.rb relies on this.
18 # the following commands are equivalent
19 - trim 52 =53 sh sox $SOXIN $SOXOUT $TRIMFX gain -6
20 - trim 52 1 sox gain -6 # shorthand
22 # as are the following (for little endian machines)
23 - trim 52 1 eca -eadb:-6
24 - trim 52 1 sh sox $SOXIN $SOX2ECA $TRIMFX | ecasound $ECAFMT
25 -i stdin -o stdout -eadb:-6 | sox $ECA2SOX - $SOXOUT
26 # SOX2ECA='-tf32 -c$CHANNELS -r$RATE'
27 # ECAFMT='-f32_le,$CHANNELS,$RATE