Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Tree [b7c71f] / example /
History



File Date Author Commit
C++ 2005-09-21 rocky rocky [2afad8] Move lower-level cdrom_drive_t from paranoia.h ...
.cvsignore 2005-09-20 rocky rocky [d8826d] Add --with-versioned-libs for libcdio_paranioa ...
Makefile.am 2005-09-16 rocky rocky [f6a5b4] configure.ac: make it explicit that --without-c...
README 2005-03-15 rocky rocky [6d9fdf] Add audio.c
audio.c 2005-05-13 rocky rocky [9f2bbc] Remove warning that this may be uninitialized.
cdtext.c 2005-01-04 rocky rocky [1df3d7] Revise for current conventions.
device.c 2005-02-06 rocky rocky [6618a0] Various portability fixes mosty for MSVC which ...
drives.c 2005-04-11 rocky rocky [4428ff] Misc memory issues
iso1.c 2005-02-03 rocky rocky [c54e37] Allow one to specify an input file on input.
iso2.c 2005-02-20 rocky rocky [0d6073] Another small change/generalization: don't limi...
iso3.c 2005-02-19 rocky rocky [59865c] Move C++ files to C++ directory. Add mmc{1,2} c...
isofuzzy.c 2005-02-09 rocky rocky [3755da] Add mode_sense6() and mode_sense10() MMC comman...
mmc1.c 2005-03-09 rocky rocky [064f1f] mmc1.c: use DEVICE_DRIVER rather than DEVICE_UN...
mmc2.c 2005-03-09 rocky rocky [064f1f] mmc1.c: use DEVICE_DRIVER rather than DEVICE_UN...
paranoia.c 2005-09-21 rocky rocky [2afad8] Move lower-level cdrom_drive_t from paranoia.h ...
paranoia2.c 2005-08-27 rocky rocky [e6c3f2] cosmetic: remove extraneous space at end of file.
sample3.c 2005-01-04 rocky rocky [1df3d7] Revise for current conventions.
sample4.c 2005-01-04 rocky rocky [1df3d7] Revise for current conventions.
tracks.c 2005-07-07 rocky rocky [757c18] Correct uninitialized variable caught by gcc 4

Read Me

$Id: README,v 1.17 2005/03/15 04:18:29 rocky Exp $

This directory contains some simple examples of the use of the libcdio
library.

One might also possibly find useful C code among the regression tests
(directory test), e.g. testparanoia.c testtoc.c testbincue.c

Larger more-complicated examples are the cd-drive, cd-info, cd-read,
iso-info and iso-read programs in the src directory. 

And going further there's the cd-paranoia program (in
src/cd-paranoia), and "real-world' code in the xine VCD plugin, vlc
CD-DA plugin which are part of those distributions.

Descriptions of the programs in this example directory are as follows...

audio.c:  Sample program to show audio controls.

cdtext.c: A program to show CD-Text and CD disc mode info.

drives.c: A program to show drivers installed and what the default
	  CD-ROM drive is and what CD drives are available.

iso1.c:   A program to show using libiso9660 to list files in a
	  directory of an ISO-9660 image.

iso2.c:   A program to show using libiso9660 to extract a file
	  from a CDRWIN cue/bin CD image.

iso3.c:   A program to show using libiso9660 to extract a file from an
	  ISO-9660 image.

isofuzzy.c :  A program showing fuzzy ISO-9660 detection/reading.

mmc1.c:    A program to show issuing a simple MMC command (INQUIRY).

mmc2.c:    A more involved MMC command to list features from 
	   a MMC GET_CONFIGURATION command.

paranoia:  A program to show using CD-DA paranoia (a library for jitter
	   detection and audio-read error correction). This program uses
	   an interface compatible (mostly) with cdparanoia.

paranoia2: Another program to show using CD-DA paranoia using a more
	   libcdio-oriented initialization. Probably more suited to
	   things that otherwise use libcdio such as media players 
	   (e.g. for getting CDDB or CD-Text info)

sample2.c: A simple program to show drivers installed and what the
   default CD-ROM drive is.

sample3.c: A simple program to show the use of cdio_guess_cd_type().
   Figure out the kind of CD image we've got.

sample4.c: A slightly improved sample3 program: we handle cdio logging
   and take an optional CD-location.

tracks.c:    A program to list track numbers and logical sector
	     numbers of a Compact Disc using libcdio.

Many of the above programs can be compiled in C++. See that directory
for C++ examples which include some of the above.