Search code examples
javaaudiojrubywave

advice an easy ruby multiplatform audio library or jruby 's java libs utilization?


I'm simply tring play a wave/mp3 file from jruby.

Can you advice me what is the easiest library for ruby to do so in a multi-platform way ?

Since I'm using Jruby i think it would really make sense to use the java audio system, but I haven't found any tutorial on using that from Jruby.

So can you give me the quickest example of playing a wave file through java audio system ?

Thanks


Solution

  • just hacked one up: https://github.com/rdp/jruby-swing-helpers/blob/master/spec/play_mp3_audio.spec.rb