# Uses wav/cross.wav from codec2-dev (a832dada)
# Files were generated using c2enc in version 1.2.0 (06d4c11) as follows:
set -e
for mode in 3200 2400 1600 1400 1300 1200 700C # modes 700 and 700B have been removed
do
    ffmpeg -i cross.wav -f s16le - | ./c2enc $mode - cross-$mode.c2
    # Strip header
    dd if=cross-$mode.c2 of=cross-$mode.raw bs=1 skip=7
    # 100 - 7 != 0 mod [4,6,7,8] so these always cause some kind of error
    dd if=cross-$mode.c2 of=cross-cut-$mode.c2 bs=100 count=1
    dd if=cross-cut-$mode.c2 of=cross-cut-$mode.raw bs=1 skip=7
done
