block-decoder-test.sh 477 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. source test-common.sh
  3. IN_WAV=block-decoder-test.wav
  4. OUT_WAV=block-decoder-test-out.wav
  5. audiowmark test-gen-noise $IN_WAV 200 44100
  6. audiowmark_add $IN_WAV $OUT_WAV $TEST_MSG
  7. audiowmark_cmp --expect-matches 5 $OUT_WAV $TEST_MSG
  8. check_length $IN_WAV $OUT_WAV
  9. audiowmark_add --test-no-limiter $IN_WAV $OUT_WAV $TEST_MSG
  10. audiowmark_cmp --expect-matches 5 $OUT_WAV $TEST_MSG
  11. check_length $IN_WAV $OUT_WAV
  12. check_snr $IN_WAV $OUT_WAV 32.4
  13. rm $IN_WAV $OUT_WAV
  14. exit 0