From fb1fb78a6386a8cf26007384dd91e3f7facf51bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Wed, 2 Feb 2000 13:38:02 +0000 Subject: Add mode2 and XAmode1 type CD tracks. --- usr.sbin/burncd/burncd.8 | 6 ++++++ usr.sbin/burncd/burncd.c | 14 ++++++++++++++ 2 files changed, 20 insertions(+) (limited to 'usr.sbin/burncd') diff --git a/usr.sbin/burncd/burncd.8 b/usr.sbin/burncd/burncd.8 index a2cc12b4a029..9a5c99f4406b 100644 --- a/usr.sbin/burncd/burncd.8 +++ b/usr.sbin/burncd/burncd.8 @@ -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 diff --git a/usr.sbin/burncd/burncd.c b/usr.sbin/burncd/burncd.c index d7d4984ac457..32747f79894a 100644 --- a/usr.sbin/burncd/burncd.c +++ b/usr.sbin/burncd/burncd.c @@ -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]); } -- cgit v1.2.3