sample-rate-test.sh 439 B

1234567891011121314151617
  1. #!/bin/bash
  2. source test-common.sh
  3. IN_WAV=sample-rate-test.wav
  4. OUT_WAV=sample-rate-test-out.wav
  5. OUT_48000_WAV=sample-rate-test-out-48000.wav
  6. audiowmark test-gen-noise $IN_WAV 200 32000
  7. audiowmark_add $IN_WAV $OUT_WAV $TEST_MSG
  8. audiowmark_cmp --expect-matches 5 $OUT_WAV $TEST_MSG
  9. audiowmark test-resample $OUT_WAV $OUT_48000_WAV 48000
  10. audiowmark_cmp --expect-matches 5 $OUT_48000_WAV $TEST_MSG
  11. rm $IN_WAV $OUT_WAV $OUT_48000_WAV
  12. exit 0