<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.dosbox.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=61.219.36.29</id>
	<title>DOSBoxWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.dosbox.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=61.219.36.29"/>
	<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/Special:Contributions/61.219.36.29"/>
	<updated>2026-05-14T14:05:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://www.dosbox.com/wiki/index.php?title=Cuesheet&amp;diff=1426</id>
		<title>Cuesheet</title>
		<link rel="alternate" type="text/html" href="https://www.dosbox.com/wiki/index.php?title=Cuesheet&amp;diff=1426"/>
		<updated>2008-08-30T03:30:07Z</updated>

		<summary type="html">&lt;p&gt;61.219.36.29: /* Compressed audio tracks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Cuesheet =&lt;br /&gt;
&lt;br /&gt;
Cuesheet is a file format that specifies track structures of mixed mode compact discs. &lt;br /&gt;
It can be used with DOSBox, when a game needs to access audio tracks of its CD that is stored as an image file. The prevalent ISO format can only store data tracks.&lt;br /&gt;
&lt;br /&gt;
== The CUE/BIN format for CD images == &lt;br /&gt;
&lt;br /&gt;
Cuesheets usually come as a CUE/BIN pair. The cuesheet, e.g. image.cue, is an ASCII text file that stores the access information for the “disc at once” binary dump, e.g. image.bin, of the CD's contents. (For more info on the cuesheet file format see [http://www.pcnineoneone.com/howto/cdburnadv4.html here].)&lt;br /&gt;
&lt;br /&gt;
Mounting a CUE/BIN pair is done in the usual way with&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;Z:\&amp;gt;IMGMOUNT E C:\Images\MyImage.cue -t iso&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An exemplary cuesheet is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FILE &amp;quot;image.bin&amp;quot; BINARY&lt;br /&gt;
  TRACK 01 MODE1/2352&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
  TRACK 02 AUDIO&lt;br /&gt;
    PREGAP 00:02:00&lt;br /&gt;
    INDEX 01 35:17:41&lt;br /&gt;
  TRACK 03 AUDIO&lt;br /&gt;
    INDEX 01 37:37:70&lt;br /&gt;
  TRACK 04 AUDIO&lt;br /&gt;
    INDEX 01 39:02:74&lt;br /&gt;
  TRACK 05 AUDIO&lt;br /&gt;
    INDEX 01 41:34:17&lt;br /&gt;
  TRACK 06 AUDIO&lt;br /&gt;
    INDEX 01 43:43:29&lt;br /&gt;
  TRACK 07 AUDIO&lt;br /&gt;
    INDEX 01 46:35:11&lt;br /&gt;
  TRACK 08 AUDIO&lt;br /&gt;
    INDEX 01 48:47:52&lt;br /&gt;
  TRACK 09 AUDIO&lt;br /&gt;
    INDEX 01 51:29:30&lt;br /&gt;
  TRACK 10 AUDIO&lt;br /&gt;
    INDEX 01 53:43:54&lt;br /&gt;
  TRACK 11 AUDIO&lt;br /&gt;
    INDEX 01 56:28:53&lt;br /&gt;
  TRACK 12 AUDIO&lt;br /&gt;
    INDEX 01 58:53:44&lt;br /&gt;
  TRACK 13 AUDIO&lt;br /&gt;
    INDEX 01 60:53:66&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
&lt;br /&gt;
Use a CD burning application like CDRWIN that can write image files in cuesheet format. &lt;br /&gt;
(An alternative to mounting the CUE/BIN images directly with DOSBox is to load it with the [http://www.daemon-tools.cc/ Daemon Tools] or similar virtual drives and mount that volume instead like a normal CD-ROM.)&lt;br /&gt;
&lt;br /&gt;
=== Linux ===&lt;br /&gt;
&lt;br /&gt;
In order to produce a CUE/BIN pair with Linux use the commands&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; cdrdao read-cd --datafile image.bin --driver generic-mmc:0x20000 --device /dev/cdrom --read-raw image.toc&lt;br /&gt;
&amp;gt; toc2cue image.toc image.cue&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The option &amp;lt;code&amp;gt;--driver generic-mmc:0x20000&amp;lt;/code&amp;gt; takes care of the correct byte order. Omitting it would lead to noise instead of music.&lt;br /&gt;
&lt;br /&gt;
== Compressed audio tracks ==&lt;br /&gt;
&lt;br /&gt;
Another advantage of cuesheets is the possibility to compress audio tracks. The image of a CD's contents can split into an ISO image of the data track and one or more compressed files in OGG or MP3 format for the audio tracks. This method can drastically reduce the image's size without a substantial loss of audio quality.&lt;br /&gt;
&lt;br /&gt;
First you have to rip and encode the audio tracks. The the cuesheet will have to be edited. Mind the changes for the first TRACK and the INDEX tags.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FILE &amp;quot;image.iso&amp;quot; BINARY&lt;br /&gt;
  TRACK 01 MODE1/2048&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
FILE &amp;quot;track02.ogg&amp;quot; MP3&lt;br /&gt;
  TRACK 02 AUDIO&lt;br /&gt;
    PREGAP 00:02:00&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
FILE &amp;quot;track03.ogg&amp;quot; MP3&lt;br /&gt;
  TRACK 03 AUDIO&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
FILE &amp;quot;track04.ogg&amp;quot; MP3&lt;br /&gt;
  TRACK 04 AUDIO&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
FILE &amp;quot;track05.ogg&amp;quot; MP3&lt;br /&gt;
  TRACK 05 AUDIO&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
FILE &amp;quot;track06.ogg&amp;quot; MP3&lt;br /&gt;
  TRACK 06 AUDIO&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
FILE &amp;quot;track07.ogg&amp;quot; MP3&lt;br /&gt;
 TRACK 07 AUDIO&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
FILE &amp;quot;track08.ogg&amp;quot; MP3&lt;br /&gt;
  TRACK 08 AUDIO&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
FILE &amp;quot;track09.ogg&amp;quot; MP3&lt;br /&gt;
  TRACK 09 AUDIO&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
FILE &amp;quot;track10.ogg&amp;quot; MP3&lt;br /&gt;
  TRACK 10 AUDIO&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
FILE &amp;quot;track11.ogg&amp;quot; MP3&lt;br /&gt;
  TRACK 11 AUDIO&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
FILE &amp;quot;track12.ogg&amp;quot; MP3&lt;br /&gt;
  TRACK 12 AUDIO&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
FILE &amp;quot;track13.ogg&amp;quot; MP3&lt;br /&gt;
  TRACK 13 AUDIO&lt;br /&gt;
    INDEX 01 00:00:00&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Warning: The length for the compressed audio tracks will never exactly match the original play length. It will deviate some frames (1 frame = 1/75 sec) from the correct values.&lt;br /&gt;
&lt;br /&gt;
The ISO-image of the data track can be mastered with any CD Burning application.&lt;br /&gt;
&lt;br /&gt;
=== Linux ===&lt;br /&gt;
&lt;br /&gt;
In order to rip and encode the audio tracks you can use the commands&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; cdparanoia -B &amp;quot;2-&amp;quot;&lt;br /&gt;
&amp;gt; oggenc *.wav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This &amp;quot;compressed&amp;quot; CUE/ISO image cannot be mounted in DOSBox, because DOSBox cannot recognize the format and has no codec to decode MP3/OGG files.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>61.219.36.29</name></author>
	</entry>
</feed>