$plugin_purpose{'convert-mmurender'} =
  "Convert module files (MOD, XM, IT, S3M, etc) to WAVE files using mmurender";
$plugin_options{'convert-mmurender'} = [
  ['opts=string', 'Extra mmurender command line options (default -ih)']];

$convert_plugin_hook = sub {
    my ($src, $dest) = map({quotemeta($_)} @_);
    my $mmuopts = defined $plugin{'convert-mmurender'}{opts} ?
      $plugin{'convert-mmurender'}{opts} : '-ih';
    system("mmurender -r 44100 -s -1 $mmuopts -t wav -o $dest $src");
    warn "error while executing mmurender" if $? != 0;
};

1
# vim:ft=perl
