⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cda.htm

📁 各种文件格式说明及程序描述
💻 HTM
字号:
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>cda music tracks file format</title>
<meta name="generator" content="microsoft frontpage 3.0">
</head>

<body background="../jpg/di1.JPG">

<p align="center"><font size="6" color="#0000ff">cda music tracks file format</font></p>
<div align="center"><center>

<table border="0" width="88%">
  <tr>
    <td width="100%"><br>
    by wojtek kaniewski 1997<br>
    <br>
    note: everything in this file is based on my own investigations.<br>
    all information that you'll find in this text file do not<br>
    come from microsoft corp.<br>
    <br>
    cda files are generally riff resources. the riff id of .cda file is<br>
    &quot;cdda&quot; (43h, 44h, 44h, 41h). they contain only one data block<br>
    called &quot;fmt &quot; (66h, 6dh, 74h, 20h). in current version of .cda file,<br>
    this block is 24 bytes long. here's structure of it:<br>
    <br>
    offset length description<br>
    00h 02h cda file version. currently equals 1. if it has<br>
    other value, following data may be out of date.<br>
    02h 02h number of track.<br>
    04h 04h cd disc serial number (the one stored in cdplayer.ini)<br>
    08h 04h beginning of the track in hsg format.<br>
    0ch 04h length of the track in hsg format.<br>
    10h 04h beginning of the track in red-book format.<br>
    14h 04h length of the track in red-book format.<br>
    <br>
    as you see, time is represented in two formats: hsg and red-book.<br>
    hsg can be calculated as following: <br>
    <br>
    time = minute * 4500 + second * 75 + frame<br>
    <br>
    red-book is much easier to use, because it contains minutes,<br>
    seconds and frames in unmodified form, byte-packed:<br>
    <br>
    offset length description<br>
    00h 01h frame<br>
    01h 01h second<br>
    02h 01h minute<br>
    03h 01h not used<br>
    <br>
    now, i'll show you an example file. first part is a hex dump<br>
    of the file, the second is the explanation of the fields.<br>
    <br>
    52 49 46 46 24 00 00 00 43 44 44 41 66 6d 74 20 riff$...cddafmt <br>
    18 00 00 00 01 00 04 00 b8 24 f6 00 f7 11 01 00 .........$......<br>
    b4 5c 00 00 0a 25 0f 00 20 10 05 00 .\...%.. ...<br>
    <br>
    01 00 - first version of cda file :)<br>
    04 00 - fourth track<br>
    b8 24 f6 00 - serial number of cd in cdplayer.ini is [f623b8]<br>
    <br>
    f7 11 01 00 - begining of track in hsg format<br>
    b4 5c 00 00 - length of track in hsg format<br>
    <br>
    0a 25 0f 00 - begining of track in red-book format (15:37)<br>
    20 10 05 00 - length of track in red-book format (05:16)<br>
    <br>
    that's all. it should be enough to write cda viewer :) if you need more<br>
    info or something isn't clear, feel free to write.<br>
    <br>
    wojtek kaniewski<br>
    wojtekka@logonet.com.pl</td>
  </tr>
</table>
</center></div>

<p align="center"><a href="../index.htm">返回</a></p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -