Class: NativeAudio::Clip

Inherits:
Object
  • Object
show all
Defined in:
lib/native_audio.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Clip

Returns a new instance of Clip.



9
10
11
12
# File 'lib/native_audio.rb', line 9

def initialize(path)
  @path = path
  @clip = Audio.load(path)
end

Instance Attribute Details

#clipObject (readonly)

Returns the value of attribute clip.



7
8
9
# File 'lib/native_audio.rb', line 7

def clip
  @clip
end