cdrom/es

From Free Pascal wiki
Revision as of 23:35, 4 September 2009 by Jma sp (talk | contribs) (New page: El paquete cdrom contiene algunas rutinas para leer la tabla de contenidos (TOC: Table Of Contents)de un CD-ROM (supongo que también servirá para DVD pero no lo se). A partir de dicha ta...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

El paquete cdrom contiene algunas rutinas para leer la tabla de contenidos (TOC: Table Of Contents)de un CD-ROM (supongo que también servirá para DVD pero no lo se). A partir de dicha tabla TOC se hace posible obtener el ID del disco (DISC ID), lo cual hace posible consultar un servidor CDDB tal como el existente en freecddb.org. Esta unit es compatible con Linux (solo testeada para plataformas x86) y Windows (solamente testeada para 32-bits), si alguien tiene ocasión de realizar dicho testeo para 64 bits vendrían bien los comentarios de funcionamiento. El paquete consta de dos units principales y otras cuantas auxiliares:


  • cdrom this unit contains the routines to determine which CD-ROM devices exist on the system, and to read the TOC of a cdrom in one of the devices.
  • discid this unit calculates a DISC ID based on the TOC of a CD-ROM. This disc-id can be used to send a query to a cddb database server. A routine exists which returns the exact query string for the CDDB server.

Other than these units, there exist some auxiliary units:

  • lincd a unit which contains essentially the translation of the linux kernel cdrom interface (linux/cdrom.h header file).
  • major a unit containing the definitions of the major device numbers on linux.
  • wincd a unit containing windows routines to enumerate cd-rom drives and read the TOC of a CDROM. It supports SPTI, IOCTL and ASPI interface calls to accomplish this task.
  • wnaspi32 the win32 interface to ASPI (scsi programming interface for windows)
  • scsidefs some constant and type definitions for the SCSI layer on windows.

There are also 2 test programs to demonstrate the capabilities of these units:

  • showcds demonstrates the cdrom unit, shows the available CD-ROM disc drives on the system.
  • getdiscid demonstrates the cdrom and discid unit by calculating the disc-id from a cdrom in a disc drive.

Go to back Packages List