Method: AudioInfo::Flac#parse
- Defined in:
- lib/audioinfo.rb
#parse ⇒ Object
213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/audioinfo.rb', line 213 def parse aInfo={"title"=>"title","artist"=>"artist","album"=>"album", "date"=>"year", "tracknumber"=>"tracknumber"} oInfo=::Flac.info(@sFile) @time = oInfo.time @sample_rate = oInfo.sample_rate; @channels= oInfo.channels; @bits_per_sample=oInfo.bits_per_sample @bps=(@size * 8 / @time) arreglarValoresEstandar(aInfo) {|tag| oInfo.comments[tag]} end |