diff options
author | sos <sos@FreeBSD.org> | 2000-02-02 13:38:02 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2000-02-02 13:38:02 +0000 |
commit | e16c6db03a4520ae7ce507dafa7ac5333f61d595 (patch) | |
tree | 4ac08b7a0b842dce0bdb2f616f51077d173f464c /usr.sbin/burncd | |
parent | 7cc7ecf5e18b353c41d2c94814519b4b5197dd9b (diff) | |
download | FreeBSD-src-e16c6db03a4520ae7ce507dafa7ac5333f61d595.zip FreeBSD-src-e16c6db03a4520ae7ce507dafa7ac5333f61d595.tar.gz |
Add mode2 and XAmode1 type CD tracks.
Diffstat (limited to 'usr.sbin/burncd')
-rw-r--r-- | usr.sbin/burncd/burncd.8 | 6 | ||||
-rw-r--r-- | usr.sbin/burncd/burncd.c | 14 |
2 files changed, 20 insertions, 0 deletions
diff --git a/usr.sbin/burncd/burncd.8 b/usr.sbin/burncd/burncd.8 index a2cc12b..9a5c99f 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 d7d4984..32747f7 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]); } |