问题
What is a good way to play an audio file from Ruby that is wav format?
OSX or Ubuntu...
Ruby 1.9.3
回答1:
I've used Gosu to play audio in a simple game context, so I imagine it would work fine for you...
@tune = Gosu::Song.new(window, "tune.wav")
@tune.play(true)
来源:https://stackoverflow.com/questions/14993412/how-to-play-a-wav-file-in-ruby