Class: AudioInfo::Mpc

Inherits:
FileName show all
Defined in:
lib/audioinfo.rb

Constant Summary

Constants inherited from FileName

FileName::ESTRUCTURAS

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



309
310
311
312
313
314
315
316
317
# File 'lib/audioinfo.rb', line 309

def parse
	aInfo={'title'=>'title', 'artist'=>'artist', 'album'=>'album', 'tracknumber'=>'tracknumber','year'=>'year'}
	oInfo=::Mpc.info(@sFile)
	@sample_rate=oInfo.sample_rate
	@channels=oInfo.channels
	@time=oInfo.time
	@bps=oInfo.bps
	arreglarValoresEstandar(aInfo) {|tag| oInfo.send(tag)}
end