sync-test.sh 365 B

1234567891011121314151617
  1. #!/bin/bash
  2. source test-common.sh
  3. IN_WAV=sync-test.wav
  4. OUT_WAV=sync-test-out.wav
  5. CUT_WAV=sync-test-cut.wav
  6. audiowmark test-gen-noise $IN_WAV 200 44100
  7. audiowmark_add $IN_WAV $OUT_WAV $TEST_MSG
  8. # cut 20 seconds and 300 samples
  9. audiowmark cut-start $OUT_WAV $CUT_WAV 882300
  10. audiowmark_cmp --expect-matches 3 $CUT_WAV $TEST_MSG
  11. rm $IN_WAV $OUT_WAV $CUT_WAV
  12. exit 0