if(File::exists?("../ext/rb_cdio.so")) require "../ext/rb_cdio" else require 'rubygems' require_gem "rb_cdio",">=0.2" end require "irb/xmp" CdIo.close_tray("/dev/cdrom1") CdIo.constants.sort.each do |const| begin puts const+"="+CdIo.const_get(const.intern).to_i.to_s rescue end end exit CdIo.devices cd=CdIo.default_device CdIo.drive_cap_dev(cd) CdIo.driver_describe(CdIo::DRIVER_LINUX) CdIo.discmode_describe(CdIo::CDIO_DISC_MODE_CD_DA) CdIo.track_format_describe(CdIo::TRACK_FORMAT_XA) cdo=CdIo.open(cd) cdo.cdtext cdo.tracks.each do |track| puts track.number p track end cdo.tracks[CdIo::CDIO_CDROM_LEADOUT_TRACK]; cdo.is_cd? cdo.is_dvd? cdo.drive_cap cdo.hwinfo cdo.joliet_level cdo=CdIo.open("/dev/cdrom")