Class: AudioInfo::Ape

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

Constant Summary

Constants inherited from Tipo

Tipo::TAGS

Instance Attribute Summary

Attributes inherited from Tipo

#album, #artist, #bits_per_sample, #bps, #channels, #sFile, #sample_rate, #size, #time, #title, #tracknumber, #year

Instance Method Summary collapse

Methods inherited from Tipo

#arreglarValor, #arreglarValoresEstandar, #incompleto?, #initialize, #kbps, #merge

Constructor Details

This class inherits a constructor from AudioInfo::Tipo

Instance Method Details

#parseObject



294
295
296
297
298
299
300
301
302
303
304
305
306
# File 'lib/audioinfo.rb', line 294

def parse
aInfo={'title'=>'title', 'artist'=>'artist', 'album'=>'album', 'track'=>'tracknumber','year'=>'year'}
	begin
	oInfo=Mac.info(@sFile)
	@sample_rate=oInfo.samplerate
	@channels=oInfo.channels
	@time=oInfo.length
	@bps=(@size*8/@time)
	arreglarValoresEstandar(aInfo) {|tag| oInfo.send(tag)}
	rescue Exception => bang
		puts bang.to_s 
	end
end