Sha256: 24346bcaa965fa1e5d7df303becf1d8331367542c1490c29e1ab3213c55bca87
Contents?: true
Size: 642 Bytes
Versions: 2
Compression:
Stored size: 642 Bytes
Contents
#!/usr/bin/env ruby require 'bundler/setup' require 'fmod' require 'irb' # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. # (If you use this, don't forget to add pry to your Gemfile!) # require "pry" # Pry.start if $0 == __FILE__ include FMOD FMOD.load_library mp3 = Dir.glob("#{Dir.home}/Music/**/*.mp3").sample unless mp3.nil? puts("Now playing \"#{File.basename(mp3)}...\"") $system = System.create $sound = $system.create_stream(mp3) $channel = $system.play_sound($sound) end IRB.start(__FILE__) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fmod-0.9.1 | bin/console |
fmod-0.9.0 | bin/console |