$plugin_purpose{'convert-mpg321'} =
  "Convert MP3 files to WAVE files using mpg321";
$plugin_options{'convert-mpg321'} = [
  ['opts=string', 'Extra mpg321 command line options']];

$convert_plugin_hook = sub {
    my ($src, $dest) = map({quotemeta($_)} @_);
    my $mpg321opts = $plugin{'convert-mpg321'}{opts};
    system("mpg321 -q --stereo $mpg321opts -w $dest $src");
    warn "error while executing mpg321" if $? != 0;
};

1
# vim:ft=perl
