Add mode2 and XAmode1 type CD tracks.

This commit is contained in:
Søren Schmidt 2000-02-02 13:38:02 +00:00
parent b7a5f3ca1b
commit fb1fb78a63
2 changed files with 20 additions and 0 deletions

View File

@ -79,6 +79,12 @@ Set the write mode to produce audio (raw mode) tracks for the following images o
.It Ar data | mode1
Set the write mode to produce data (mode1) tracks for the following image files
on the command line.
.It Ar mode2
Set the write mode to produce data (mode2) tracks for the following image files
on the command line.
.It Ar XAmode1
Set the write mode to produce data (XAmode1) tracks for the following image
files on the command line.
.It Ar filename
All other arguments are treated as filenames of images to write to the media.
.El

View File

@ -128,6 +128,20 @@ main(int argc, char **argv)
block_size = 2048;
continue;
}
if (!strcmp(argv[arg], "mode2")) {
track.test_write = test_write;
track.track_type = CDR_DB_ROM_MODE2;
track.preemp = 0;
block_size = 2336;
continue;
}
if (!strcmp(argv[arg], "XAmode1")) {
track.test_write = test_write;
track.track_type = CDR_DB_XA_MODE1;
track.preemp = 0;
block_size = 2048;
continue;
}
if ((file = open(argv[arg], O_RDONLY, 0)) < 0) {
err(EX_NOINPUT, "open(%s)", argv[arg]);
}