Sha256: dc5496b9387c15b9ebf3345729787303ca9d9477364fa425d38428e8dbfe8992
Contents?: true
Size: 331 Bytes
Versions: 1
Compression:
Stored size: 331 Bytes
Contents
# Ruby2D::Sound module Ruby2D class Sound attr_reader :path attr_accessor :data def initialize(path) unless File.exist? path raise Error, "Cannot find audio file `#{path}`" end @path = path ext_init(path) end # Play the sound def play ext_play end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby2d-0.8.0 | lib/ruby2d/sound.rb |