# File lib/mp3info.rb, line 479 def each_frame @io.seek(@first_frame_pos, File::SEEK_SET) loop do head = @io.read(4).unpack("N").first frame = Mp3Info.get_frames_infos(head) @io.seek(frame[:size] -4, File::SEEK_CUR) yield frame #puts "frame #{frame_count} len #{frame[:length]} br #{frame[:bitrate]} @io.pos #{@io.pos}" break if @io.eof? end end