clip-decoder-test.sh 438 B

123456789101112131415161718
  1. #!/bin/bash
  2. source test-common.sh
  3. IN_WAV=clip-decoder-test.wav
  4. OUT_WAV=clip-decoder-test-out.wav
  5. CUT_WAV=clip-decoder-test-out-cut.wav
  6. audiowmark test-gen-noise $IN_WAV 30 44100
  7. audiowmark_add $IN_WAV $OUT_WAV $TEST_MSG
  8. audiowmark_cmp --expect-matches 1 $OUT_WAV $TEST_MSG
  9. # cut 1 second 300 samples
  10. audiowmark cut-start $OUT_WAV $CUT_WAV 44300
  11. audiowmark_cmp --expect-matches 1 $CUT_WAV $TEST_MSG
  12. rm $IN_WAV $OUT_WAV $CUT_WAV
  13. exit 0