6 $_ = get_mp3info
($ARGV[0]);
9 open STDERR
, ">/dev/null";
11 if(abs($_->{FREQUENCY
} - 44.1) > 0.1) {
12 $sfreq_from = int($_->{FREQUENCY
} * 1000 + 0.5);
14 open STDOUT
, "|resample $sfreq_from 44100";
18 @opts = ('-SQoraw:-');
20 # check if the --ignore-crc option is supported
21 # madplay versions prior to 0.14.2b don't have it
22 push @opts, "--ignore-crc" if `madplay -h 2>&1 |grep -- --ignore-crc`;
24 exec 'madplay', @opts, $ARGV[0];