lib/scissor/sound_file.rb in scissor-0.1.0 vs lib/scissor/sound_file.rb in scissor-0.1.1
- old
+ new
@@ -19,10 +19,10 @@
end
def length
case @ext
when 'mp3'
- Mp3Info.new(@filename).length
+ Mp3Info.new(@filename.to_s).length
when 'wav'
riff = Riff::Reader.open(@filename ,"r")
data = riff.root_chunk['data']
fmt = riff.root_chunk['fmt ']