new (Freedb)

    # File lib/freedb.rb, line 182
      def initialize(param = "/dev/cdrom", is_query = false)
        @query =
          if is_query
            param
          else
            require "freedb_cdrom"
            get_cdrom(param)
          end
        q = @query.split(" ")
        @discid = q[0]
        nb_tracks = q[1].to_i
        @length = q[-1].to_i
        @offsets = q[2...-1] << @length*CD_FRAME
        @offsets.collect! { |x| x.to_i }

        @tracks = Array.new

        nb_tracks.times { |i|
          t = Hash.new
          t["length"] = ((@offsets[i+1]-@offsets[i]).to_f/CD_FRAME).round
          @tracks << t
        }
        @revision = 0
        @raw_response = ""
      end