Ruby sound playback

audioruby

This is 2009, back in 2001 or so, there used to be no good bindings for sound playback in ruby.

Has there been a change? I am looking for something to control playback of either raw sound or mp3, ogg and flac. My Googling has turned up dry.

Edit: Linux, OSX and if possible Windows.

Best Solution

You don't mention a platform. This page describes the win32-sound library, which seems to support at least WAV playback.

For a more platform-neutral way, Ruby/SDL provides bindings for the ever-popular SDL library.