$ make
$ ./c2enc ../raw/hts1a.raw hts1a_c2.bit
$ ./c2dec hts1a_c2.bit hts1a_c2.raw
-$ ../scripts/menu.sh ../raw/hts1a.raw hts1a_c2.raw
+$ ../script/menu.sh ../raw/hts1a.raw hts1a_c2.raw
+
+For playback testing, menu.sh requires either the 'play', 'aplay' or
+'ossplay' programs to be installed (see http://sox.sourceforge.net/,
+http://www.alsa-project.org/, or http://www.opensound.com/ respectively).
Programs
--------
if [ $readchar == 'q' -o $readchar == 'Q' ] ; then
exit 0
fi
- play -r 8000 -s -2 ${file[$readchar]} $dsp 2> /dev/null
+ if ( play --version ) >/dev/null 2>&1; then
+ play -r 8000 -s -2 ${file[$readchar]} $dsp 2> /dev/null
+ elif ( aplay --version ) > /dev/null 2>&1; then
+ aplay -r 8000 -f S16_LE ${file[$readchar]} 2> /dev/null
+ elif ( ossplay -f? ) > /dev/null 2>&1; then
+ ossplay -s8000 -fS16_LE ${file[$readchar]} 2> /dev/null
+ else
+ echo "could not find play, aplay or ossplay program"
+ fi
fi
done
echo