old-www/HOWTO/MP3-CD-Burning/dao-burning.html

262 lines
4.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Burning a DAO CD</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Linux MP3 CD Burning mini-HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Burning Your CD"
HREF="burning.html"><LINK
REL="NEXT"
TITLE="Software"
HREF="software.html"></HEAD
><BODY
CLASS="SECTION"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Linux MP3 CD Burning mini-HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="burning.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="software.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECTION"
><H1
CLASS="SECTION"
><A
NAME="DAO-BURNING"
></A
>4. Burning a DAO CD</H1
><P
>DAO, Disc-At-Once, is as of now the only method for burning a CD without a 2-second pause between the tracks.
It's useful for burning party mixes. The program for burning CDs in DAO mode is <B
CLASS="COMMAND"
>cdrdao</B
>, available from SourceForge, <A
HREF="http://sourceforge.net/projects/cdrdao/"
TARGET="_top"
>http://sourceforge.net/projects/cdrdao/</A
>.</P
><P
>The <B
CLASS="COMMAND"
>cdrdao</B
> program uses description files called <EM
>TOC</EM
> (Table Of Contents, of course). There are two ways to create such file. First is to use a shell script, distributed with <B
CLASS="COMMAND"
>cdrdao</B
> source (in <TT
CLASS="FILENAME"
>contrib</TT
> directory, called <B
CLASS="COMMAND"
>generate_toc.sh</B
>. It takes a list of <TT
CLASS="FILENAME"
>.wav</TT
> files as an argument and produces a <TT
CLASS="FILENAME"
>cd.toc</TT
> file. Second way is to simply create such file yourself in a text editor of your choice. Here is a self-explanatory example:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
>CD_DA
TRACK AUDIO
AUDIOFILE "mix-01.wav" 0
TRACK AUDIO
AUDIOFILE "mix-02.wav" 0
TRACK AUDIO
AUDIOFILE "mix-03.wav" 0
TRACK AUDIO
AUDIOFILE "mix-04.wav" 0
TRACK AUDIO
AUDIOFILE "mix-05.wav" 0</PRE
></FONT
></TD
></TR
></TABLE
><P
>The <EM
>0</EM
> (zero) after the wave filename means start from the beginning of the file. There can be a second number providing the length (time) of file to record. The <B
CLASS="COMMAND"
>xcdroast</B
> creates similar <EM
>TOC</EM
> files, there are also examples in <TT
CLASS="FILENAME"
>testtocs</TT
> directory of <B
CLASS="COMMAND"
>cdrdao</B
> source.</P
><P
>The <B
CLASS="COMMAND"
>cdrdao</B
> by default uses the device <TT
CLASS="FILENAME"
>/dev/cdrecorder</TT
>, which should be a link to the cdwriter device. Assuming your cd recorder device file is <TT
CLASS="FILENAME"
>/dev/scd0</TT
>, create the link (as root) as follows:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
>ln -s /dev/scd0 /dev/cdrecorder</PRE
></FONT
></TD
></TR
></TABLE
><P
>Then, assuming that the <EM
>TOC</EM
> file is named <TT
CLASS="FILENAME"
>cd.toc</TT
> the command to burn the cd is simply:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
>cdrdao write cd.toc</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="burning.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="software.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Burning Your CD</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Software</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>