Audio conversion in Windows, FLAC to MP3, etc

Any thoughts on how to do this in Ruby? I’ve tried hooking to the
dbPowerAmp DLL but there are problems that seem kinda inscrutable (see
message http://tinyurl.com/y9r86h). Too bad, because that’s what I use
interactively, and it seems pretty good.

Any other ways to do audio conversions in Ruby that people recommend –
general-purpose conversion libraries for Windoze, scripting interfaces,
etc? FLAC to MP3 is the one I most want, with flexibility in the MP3
parameters. But it would be nice to have a bigger set of formats.

Thanks. --David.