sox_ng/test/fmt-aifc-ulaw-write/run

16 lines
378 B
Bash

#! /bin/sh
# Test writing of AIFC ULAW encoding
rm -f core core.* out.aifc ulaw.raw out.raw
${sox:-sox} -D ulaw.aifc -e u-law out.aifc
status=$?
${sox:-sox} -D ulaw.aifc -t raw -e signed -b 16 ulaw.raw || status=2
${sox:-sox} -D out.aifc -t raw -e signed -b 16 out.raw || status=2
cmp ulaw.raw out.raw || status=2
rm -f core core.* out.aifc ulaw.raw out.raw
exit $status