Skip to content

Instantly share code, notes, and snippets.

@abeeku
abeeku / audio_test.rb
Created May 14, 2011 17:22 — forked from tobytripp/audio_test.rb
Play a given audio file in Ruby
#!/usr/bin/env ruby
require 'rubygame'
include Rubygame
# Stuff that I had to do to get this running:
#
# brew install sdl sdl_mixer
# gem install rubygame rsdl
# Let's start by trying to play a random mp3 passed as an argument