Sha256: efbacab664fbf74a84df2009bfa449fb5000919b51725ecad1fca3d7ad5723e6

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 Bytes

Contents

module Ray
  class Sound
    def initialize(arg = nil)
      case arg
      when String      then self.buffer = SoundBufferSet[arg]
      when SoundBuffer then self.buffer = arg
      when nil         then return
      else
        self.buffer = SoundBuffer.new(arg)
      end
    end

    alias time= seek

    alias position  pos
    alias position= pos=
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ray-0.1.1 lib/ray/sound.rb
ray-0.1.0 lib/ray/sound.rb