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

$convert_plugin_hook = sub {
    my ($src, $dest) = map({quotemeta($_)} @_);
    my $ogg123opts = $plugin{'convert-ogg123'}{opts};
    system("ogg123 -q $ogg123opts -d wav -f $dest $src");
    warn "error while executing ogg123" if $? != 0;
};

1
# vim ft=perl
