6 print "convert.pl 20020130 from $from to $to\n";
8 my $output=`file $from`;
12 print "input file is WAV...\n";
13 if($output=~m/stereo/){
20 $output=`sox $from -t RAW -w -s -c $channels -r 44100 $to`;
25 print "input is an unsupported file type (for now)\n";
30 my$footer=pack("ii",55,$channels);
31 die $! unless open(TEMP
,">>$to");
32 syswrite TEMP
,$footer;