rb_cdio 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. data/ext/CdIo.c +132 -0
  2. data/ext/CdIo.h +108 -0
  3. data/ext/CdIo.o +0 -0
  4. data/ext/CdIo_Cd.c +345 -0
  5. data/ext/CdIo_Cd.o +0 -0
  6. data/ext/CdIo_Common.c +84 -0
  7. data/ext/CdIo_Common.o +0 -0
  8. data/ext/CdIo_Modulo.c +226 -0
  9. data/ext/CdIo_Modulo.o +0 -0
  10. data/ext/CdIo_Track.c +91 -0
  11. data/ext/CdIo_Track.o +0 -0
  12. data/ext/CdIo_TrackIso9660.c +78 -0
  13. data/ext/CdIo_TrackIso9660.o +0 -0
  14. data/ext/Makefile +127 -0
  15. data/ext/extconf.rb +4 -0
  16. data/ext/mkmf.log +26 -0
  17. data/lib/rb_cdio_read.rb +39 -0
  18. data/test/data/Makefile +677 -0
  19. data/test/data/Makefile.am +78 -0
  20. data/test/data/Makefile.in +677 -0
  21. data/test/data/bad-cat1.cue +9 -0
  22. data/test/data/bad-cat1.toc +8 -0
  23. data/test/data/bad-cat2.cue +9 -0
  24. data/test/data/bad-cat2.toc +8 -0
  25. data/test/data/bad-cat3.cue +9 -0
  26. data/test/data/bad-cat3.toc +8 -0
  27. data/test/data/bad-mode1.cue +7 -0
  28. data/test/data/bad-mode1.toc +5 -0
  29. data/test/data/bad-msf-1.cue +7 -0
  30. data/test/data/bad-msf-1.toc +6 -0
  31. data/test/data/bad-msf-2.cue +7 -0
  32. data/test/data/bad-msf-2.toc +6 -0
  33. data/test/data/bad-msf-3.cue +7 -0
  34. data/test/data/bad-msf-3.toc +6 -0
  35. data/test/data/cdda-read.right +148 -0
  36. data/test/data/cdda.bin +0 -0
  37. data/test/data/cdda.cue +6 -0
  38. data/test/data/cdda.right +44 -0
  39. data/test/data/cdda.toc +13 -0
  40. data/test/data/cdtext.toc +48 -0
  41. data/test/data/check_cd_read.sh +53 -0
  42. data/test/data/check_common_fn +186 -0
  43. data/test/data/check_common_fn.in +186 -0
  44. data/test/data/check_cue.sh +102 -0
  45. data/test/data/check_cue.sh.in +102 -0
  46. data/test/data/check_iso.sh +32 -0
  47. data/test/data/check_iso.sh.in +32 -0
  48. data/test/data/check_nrg.sh +68 -0
  49. data/test/data/check_nrg.sh.in +68 -0
  50. data/test/data/check_opts.sh +33 -0
  51. data/test/data/check_opts0.right +40 -0
  52. data/test/data/check_opts1.right +40 -0
  53. data/test/data/check_opts2.right +34 -0
  54. data/test/data/check_opts3.right +34 -0
  55. data/test/data/check_opts4.right +44 -0
  56. data/test/data/check_opts5.right +44 -0
  57. data/test/data/check_opts6.right +44 -0
  58. data/test/data/check_opts7.right +44 -0
  59. data/test/data/check_sizeof +117 -0
  60. data/test/data/check_sizeof.c +77 -0
  61. data/test/data/copying.iso +0 -0
  62. data/test/data/copying.right +10 -0
  63. data/test/data/data1.toc +8 -0
  64. data/test/data/data2.toc +13 -0
  65. data/test/data/data5.toc +13 -0
  66. data/test/data/data6.toc +8 -0
  67. data/test/data/data7.toc +13 -0
  68. data/test/data/isofs-m1-read.right +258 -0
  69. data/test/data/isofs-m1.bin +0 -0
  70. data/test/data/isofs-m1.cue +3 -0
  71. data/test/data/isofs-m1.right +57 -0
  72. data/test/data/isofs-m1.toc +4 -0
  73. data/test/data/t1.toc +5 -0
  74. data/test/data/t2.toc +6 -0
  75. data/test/data/t3.toc +11 -0
  76. data/test/data/t4.toc +8 -0
  77. data/test/data/t5.toc +8 -0
  78. data/test/data/t6.toc +7 -0
  79. data/test/data/t7.toc +12 -0
  80. data/test/data/t8.toc +14 -0
  81. data/test/data/t9.toc +31 -0
  82. data/test/data/testassert +117 -0
  83. data/test/data/testassert.c +36 -0
  84. data/test/data/testbincue +117 -0
  85. data/test/data/testbincue.c +88 -0
  86. data/test/data/testdefault +117 -0
  87. data/test/data/testdefault.c +196 -0
  88. data/test/data/testischar +117 -0
  89. data/test/data/testischar.c +71 -0
  90. data/test/data/testiso9660 +117 -0
  91. data/test/data/testiso9660.c +153 -0
  92. data/test/data/testtoc +117 -0
  93. data/test/data/testtoc.c +101 -0
  94. data/test/data/vcd_demo.right +116 -0
  95. data/test/data/videocd.nrg +0 -0
  96. data/test/data/videocd.right +92 -0
  97. data/test/testall.rb +4 -0
  98. data/test/testbincue.rb +30 -0
  99. data/test/testtoc.rb +45 -0
  100. metadata +141 -0
@@ -0,0 +1,9 @@
1
+ REM $Id: bad-cat1.cue,v 1.1 2004/07/12 03:59:59 rocky Exp $
2
+ REM test catalog number - no catalog after word CATALOG
3
+
4
+ CATALOG
5
+
6
+ FILE "cdda.bin" BINARY
7
+
8
+ TRACK 01 AUDIO
9
+ INDEX 01 00:00:00
@@ -0,0 +1,8 @@
1
+ // $Id: bad-cat1.toc,v 1.1 2004/05/08 20:36:02 rocky Exp $
2
+ // test catalog number - no catalog after word CATALOG
3
+
4
+ CATALOG
5
+
6
+ TRACK AUDIO
7
+ NO COPY
8
+ FILE "cdda.bin" 1:0:0
@@ -0,0 +1,9 @@
1
+ REM $Id: bad-cat2.cue,v 1.1 2004/07/09 20:47:08 rocky Exp $
2
+ REM test catalog number. -- not enough digits
3
+
4
+ CATALOG "167890123"
5
+
6
+ FILE "cdda.bin" BINARY
7
+
8
+ TRACK 01 AUDIO
9
+ INDEX 01 00:00:00
@@ -0,0 +1,8 @@
1
+ // $Id: bad-cat2.toc,v 1.2 2004/07/09 20:47:08 rocky Exp $
2
+ // test catalog number. -- not enough digits
3
+
4
+ CATALOG 167890123 // Should be 13 digits
5
+
6
+ TRACK AUDIO
7
+ NO COPY
8
+ FILE "cdda.bin" 1:0:0
@@ -0,0 +1,9 @@
1
+ REM $Id: bad-cat3.cue,v 1.2 2004/07/10 01:18:02 rocky Exp $
2
+ REM test catalog number. -- invalid decimal digit
3
+
4
+ CATALOG 123456789b123
5
+
6
+ FILE "cdda.bin" BINARY
7
+
8
+ TRACK 01 AUDIO
9
+ INDEX 01 00:00:00
@@ -0,0 +1,8 @@
1
+ // $Id: bad-cat3.toc,v 1.1 2004/05/08 20:36:02 rocky Exp $
2
+ // test catalog number - non-digit catalog name
3
+
4
+ CATALOG "123456789A123"
5
+
6
+ TRACK AUDIO
7
+ NO COPY
8
+ FILE "cdda.bin" 1:0:0
@@ -0,0 +1,7 @@
1
+ REM $Id: bad-mode1.cue,v 1.1 2004/07/10 01:18:02 rocky Exp $
2
+ REM "MODE1_FORM45" is not a valid mode.
3
+
4
+ FILE "cdda.bin" BINARY
5
+
6
+ TRACK 01 MODE3_FORM1
7
+ INDEX 01 00:00:00
@@ -0,0 +1,5 @@
1
+ // $Id: bad-mode1.toc,v 1.1 2004/05/07 10:57:50 rocky Exp $
2
+ CD_DA
3
+
4
+ TRACK MODE1_FORM45 // "MODE1_FORM45" is not a valid mode.
5
+ SILENCE 10:0:0
@@ -0,0 +1,7 @@
1
+ REM $Id: bad-msf-1.cue,v 1.1 2004/07/12 03:57:28 rocky Exp $
2
+ REM bad MSF in second field - frame should be less than 75
3
+
4
+ FILE "cdda.bin" BINARY
5
+
6
+ TRACK 01 AUDIO
7
+ INDEX 01 00:00:100
@@ -0,0 +1,6 @@
1
+ // $Id: bad-msf-1.toc,v 1.1 2004/05/07 10:57:50 rocky Exp $
2
+ // bad MSF in second field
3
+
4
+ TRACK AUDIO
5
+ NO COPY // so that all CTL flags are 0
6
+ FILE "cdda.bin" 0:0:75 // frame should be less than 75
@@ -0,0 +1,7 @@
1
+ REM $Id: bad-msf-2.cue,v 1.1 2004/07/10 01:18:02 rocky Exp $
2
+ REM bad MSF in second field - seconds should be less than 60
3
+
4
+ FILE "cdda.bin" BINARY
5
+
6
+ TRACK 01 AUDIO
7
+ INDEX 01 00:90:00
@@ -0,0 +1,6 @@
1
+ // $Id: bad-msf-2.toc,v 1.1 2004/05/07 10:57:50 rocky Exp $
2
+ // bad MSF in second field
3
+
4
+ TRACK AUDIO
5
+ NO COPY // so that all CTL flags are 0
6
+ FILE "cdda.bin" 0:60:0 // seconds should be less than 60
@@ -0,0 +1,7 @@
1
+ REM $Id: bad-msf-3.cue,v 1.1 2004/07/12 03:58:55 rocky Exp $
2
+ REM bad MSF in second field
3
+
4
+ FILE "cdda.bin" BINARY
5
+
6
+ TRACK 01 AUDIO
7
+ INDEX 01 xx:yy:0
@@ -0,0 +1,6 @@
1
+ // $Id: bad-msf-3.toc,v 1.1 2004/07/10 01:18:02 rocky Exp $
2
+ // bad MSF in second field
3
+
4
+ TRACK AUDIO
5
+ NO COPY // so that all CTL flags are 0
6
+ FILE "cdda.bin" xx:yy:zz // Should be digits
@@ -0,0 +1,148 @@
1
+ 0x0000: 0000 0000 0000 0000 0000 0000 0000 0000 ................
2
+ 0x0010: 0000 0000 0000 0000 0000 0000 0000 0000 ................
3
+ 0x0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
4
+ 0x0030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5
+ 0x0040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
6
+ 0x0050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
7
+ 0x0060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
8
+ 0x0070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
9
+ 0x0080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
10
+ 0x0090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
11
+ 0x00a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
12
+ 0x00b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
13
+ 0x00c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
14
+ 0x00d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
15
+ 0x00e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
16
+ 0x00f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
17
+ 0x0100: 0000 0000 0000 0000 0000 0000 0000 0000 ................
18
+ 0x0110: 0000 0000 0000 0000 0000 0000 0000 0000 ................
19
+ 0x0120: 0000 0000 0000 0000 0000 0000 0000 0000 ................
20
+ 0x0130: 0000 0000 0000 0000 0000 0000 0000 0000 ................
21
+ 0x0140: 0000 0000 0000 0000 0000 0000 0000 0000 ................
22
+ 0x0150: 0000 0000 0000 0000 0000 0000 0000 0000 ................
23
+ 0x0160: 0000 0000 0000 0000 0000 0000 0000 0000 ................
24
+ 0x0170: 0000 0000 0000 0000 0000 0000 0000 0000 ................
25
+ 0x0180: 0000 0000 0000 0000 0000 0000 0000 0000 ................
26
+ 0x0190: 0000 0000 0000 0000 0000 0000 0000 0000 ................
27
+ 0x01a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
28
+ 0x01b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
29
+ 0x01c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
30
+ 0x01d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
31
+ 0x01e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
32
+ 0x01f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
33
+ 0x0200: 0000 0000 0000 0000 0000 0000 0000 0000 ................
34
+ 0x0210: 0000 0000 0000 0000 0000 0000 0000 0000 ................
35
+ 0x0220: 0000 0000 0000 0000 0000 0000 0000 0000 ................
36
+ 0x0230: 0000 0000 0000 0000 0000 0000 0000 0000 ................
37
+ 0x0240: 0000 0000 0000 0000 0000 0000 0000 0000 ................
38
+ 0x0250: 0000 0000 0000 0000 0000 0000 0000 0000 ................
39
+ 0x0260: 0000 0000 0000 0000 0000 0000 0000 0000 ................
40
+ 0x0270: 0000 0000 0000 0000 0000 0000 0000 0000 ................
41
+ 0x0280: 0000 0000 0000 0000 0000 0000 0000 0000 ................
42
+ 0x0290: 0000 0000 0000 0000 0000 0000 0000 0000 ................
43
+ 0x02a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
44
+ 0x02b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
45
+ 0x02c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
46
+ 0x02d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
47
+ 0x02e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
48
+ 0x02f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
49
+ 0x0300: 0000 0000 0000 0000 0000 0000 0000 0000 ................
50
+ 0x0310: 0000 0000 0000 0000 0000 0000 0000 0000 ................
51
+ 0x0320: 0000 0000 0000 0000 0000 0000 0000 0000 ................
52
+ 0x0330: 0000 0000 0000 0000 0000 0000 0000 0000 ................
53
+ 0x0340: 0000 0000 0000 0000 0000 0000 0000 0000 ................
54
+ 0x0350: 0000 0000 0000 0000 0000 0000 0000 0000 ................
55
+ 0x0360: 0000 0000 0000 0000 0000 0000 0000 0000 ................
56
+ 0x0370: 0000 0000 0000 0000 0000 0000 0000 0000 ................
57
+ 0x0380: 0000 0000 0000 0000 0000 0000 0000 0000 ................
58
+ 0x0390: 0000 0000 0000 0000 0000 0000 0000 0000 ................
59
+ 0x03a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
60
+ 0x03b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
61
+ 0x03c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
62
+ 0x03d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
63
+ 0x03e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
64
+ 0x03f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
65
+ 0x0400: 0000 0000 0000 0000 0000 0000 0000 0000 ................
66
+ 0x0410: 0000 0000 0000 0000 0000 0000 0000 0000 ................
67
+ 0x0420: 0000 0000 0000 0000 0000 0000 0000 0000 ................
68
+ 0x0430: 0000 0000 0000 0000 0000 0000 0000 0000 ................
69
+ 0x0440: 0000 0000 0000 0000 0000 0000 0000 0000 ................
70
+ 0x0450: 0000 0000 0000 0000 0000 0000 0000 0000 ................
71
+ 0x0460: 0000 0000 0000 0000 0000 0000 0000 0000 ................
72
+ 0x0470: 0000 0000 0000 0000 0000 0000 0000 0000 ................
73
+ 0x0480: 0000 0000 0000 0000 0000 0000 0000 0000 ................
74
+ 0x0490: 0000 0000 0000 0000 0000 0000 0000 0000 ................
75
+ 0x04a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
76
+ 0x04b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
77
+ 0x04c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
78
+ 0x04d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
79
+ 0x04e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
80
+ 0x04f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
81
+ 0x0500: 0000 0000 0000 0000 0000 0000 0000 0000 ................
82
+ 0x0510: 0000 0000 0000 0000 0000 0000 0000 0000 ................
83
+ 0x0520: 0000 0000 0000 0000 0000 0000 0000 0000 ................
84
+ 0x0530: 0000 0000 0000 0000 0000 0000 0000 0000 ................
85
+ 0x0540: 0000 0000 0000 0000 0000 0000 0000 0000 ................
86
+ 0x0550: 0000 0000 0000 0000 0000 0000 0000 0000 ................
87
+ 0x0560: 0000 0000 0000 0000 0000 0000 0000 0000 ................
88
+ 0x0570: 0000 0000 0000 0000 0000 0000 0000 0000 ................
89
+ 0x0580: 0000 0000 0000 0000 0000 0000 0000 0000 ................
90
+ 0x0590: 0000 0000 0000 0000 f0ff 0000 f0ff 0000 ................
91
+ 0x05a0: e3ff f0ff e3ff f0ff d8ff e3ff d8ff e3ff ................
92
+ 0x05b0: dfff e8ff dfff e8ff f5ff fcff f5ff fcff ................
93
+ 0x05c0: 0700 0c00 0700 0c00 1500 1800 1500 1800 ................
94
+ 0x05d0: 2000 1100 2000 1100 2800 0b00 2800 0b00 ... ...(...(...
95
+ 0x05e0: 1d00 0500 1d00 0500 1300 0000 1300 0000 ................
96
+ 0x05f0: 0a00 0b00 0a00 0b00 1200 1300 1200 1300 ................
97
+ 0x0600: 1800 1900 1800 1900 0c00 0d00 0c00 0d00 ................
98
+ 0x0610: 0200 0300 0200 0300 e9ff faff e9ff faff ................
99
+ 0x0620: d5ff f2ff d5ff f2ff b5ff dbff b5ff dbff ................
100
+ 0x0630: 9cff c8ff 9cff c8ff a9ff c9ff a9ff c9ff ................
101
+ 0x0640: c4ff daff c4ff daff eaff f8ff eaff f8ff ................
102
+ 0x0650: 1900 1000 1900 1000 3e00 2300 3e00 2300 ........>.#.>.#.
103
+ 0x0660: 6b00 3100 6b00 3100 8d00 3b00 8d00 3b00 k.1.k.1...;...;.
104
+ 0x0670: 7600 4200 7600 4200 6100 3600 6100 3600 v.B.v.B.a.6.a.6.
105
+ 0x0680: 3e00 2b00 3e00 2b00 1000 1100 1000 1100 >.+.>.+.........
106
+ 0x0690: eaff fbff eaff fbff cbff e9ff cbff e9ff ................
107
+ 0x06a0: b2ff daff b2ff daff ceff deff ceff deff ................
108
+ 0x06b0: e5ff f1ff e5ff f1ff f8ff 0000 f8ff 0000 ................
109
+ 0x06c0: 0700 0c00 0700 0c00 1300 1500 1300 1500 ................
110
+ 0x06d0: 0c00 0b00 0c00 0b00 e6ff f2ff e6ff f2ff ................
111
+ 0x06e0: c7ff ddff c7ff ddff aeff ccff aeff ccff ................
112
+ 0x06f0: 8aff bfff 8aff bfff 6eff b5ff 6eff b5ff ........n...n...
113
+ 0x0700: 99ff ceff 99ff ceff d0ff e3ff d0ff e3ff ................
114
+ 0x0710: 0e00 0400 0e00 0400 8000 3e00 8000 3e00 ..........>...>.
115
+ 0x0720: da00 6c00 da00 6c00 1f01 8f00 1f01 8f00 ..l...l.........
116
+ 0x0730: 4201 a900 4201 a900 2901 9b00 2901 9b00 B...B...)...)...
117
+ 0x0740: d000 6d00 d000 6d00 7100 3500 7100 3500 ..m...m.q.5.q.5.
118
+ 0x0750: 0000 0600 0000 0600 64ff bfff 64ff bfff ........d...d...
119
+ 0x0760: e7fe 86ff e7fe 86ff a7fe 59ff a7fe 59ff ..........Y...Y.
120
+ 0x0770: 98fe 47ff 98fe 47ff b1fe 4bff b1fe 4bff ..G...G...K...K.
121
+ 0x0780: eafe 71ff eafe 71ff 5cff a2ff 5cff a2ff ..q...q.\...\...
122
+ 0x0790: ceff ebff ceff ebff 3c00 2600 3c00 2600 ........<.&.<.&.
123
+ 0x07a0: 9400 5500 9400 5500 d900 7900 d900 7900 ..U...U...y...y.
124
+ 0x07b0: bd00 6400 bd00 6400 a300 5100 a300 5100 ..d...d...Q...Q.
125
+ 0x07c0: 5f00 3000 5f00 3000 1300 1400 1300 1400 _.0._.0.........
126
+ 0x07d0: 0700 fcff 0700 fcff 0d00 f8ff 0d00 f8ff ................
127
+ 0x07e0: 1100 0400 1100 0400 4300 1d00 4300 1d00 ........C...C...
128
+ 0x07f0: 6a00 3000 6a00 3000 8800 3e00 8800 3e00 j.0.j.0...>...>.
129
+ 0x0800: 8e00 4800 8e00 4800 6000 2f00 6000 2f00 ..H...H.`./.`./.
130
+ 0x0810: e9ff f9ff e9ff f9ff 88ff cdff 88ff cdff ................
131
+ 0x0820: 3bff 9aff 3bff 9aff ecfe 72ff ecfe 72ff ;...;.....r...r.
132
+ 0x0830: d2fe 63ff d2fe 63ff 01ff 79ff 01ff 79ff ..c...c...y...y.
133
+ 0x0840: 2bff 8cff 2bff 8cff 83ff bdff 83ff bdff +...+...........
134
+ 0x0850: fcff f5ff fcff f5ff 5e00 3200 5e00 3200 ........^.2.^.2.
135
+ 0x0860: ac00 6200 ac00 6200 e800 8700 e800 8700 ..b...b.........
136
+ 0x0870: 0501 8200 0501 8200 d800 6b00 d800 6b00 ..........k...k.
137
+ 0x0880: 9d00 5600 9d00 5600 6a00 4300 6a00 4300 ..V...V.j.C.j.C.
138
+ 0x0890: 3e00 2200 3e00 2200 1900 0600 1900 0600 >.".>.".........
139
+ 0x08a0: eaff efff eaff efff e4ff ecff e4ff ecff ................
140
+ 0x08b0: dfff e9ff dfff e9ff bbff e6ff bbff e6ff ................
141
+ 0x08c0: 9eff d3ff 9eff d3ff 77ff c4ff 77ff c4ff ........w...w...
142
+ 0x08d0: 39ff a8ff 39ff a8ff 19ff 92ff 19ff 92ff 9...9...........
143
+ 0x08e0: 22ff 91ff 22ff 91ff 5cff b1ff 5cff b1ff "..."...\...\...
144
+ 0x08f0: cdff ecff cdff ecff 7500 3c00 7500 3c00 ........u.<.u.<.
145
+ 0x0900: 1101 8c00 1101 8c00 8b01 ca00 8b01 ca00 ................
146
+ 0x0910: e701 f900 e701 f900 da01 fb00 da01 fb00 ................
147
+ 0x0920: 6401 b800 6401 b800 8a00 4500 8a00 4500 d...d.....E...E.
148
+
Binary file
@@ -0,0 +1,6 @@
1
+ TITLE "Join us now we have the software"
2
+ CATALOG 0000010271955
3
+ PERFORMER "Richard Stallman"
4
+ FILE "BOING.BIN" BINARY
5
+ TRACK 01 AUDIO
6
+ INDEX 01 00:00:00
@@ -0,0 +1,44 @@
1
+ This is free software; see the source for copying conditions.
2
+ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
3
+ PARTICULAR PURPOSE.
4
+ Hardware : Disk Image
5
+ Can eject : No
6
+ Can close tray : No
7
+ Can disable manual eject : No
8
+ Can select juke-box disc : No
9
+
10
+ Can set drive speed : No
11
+ Can detect if CD changed : No
12
+ Can read multiple sessions : No
13
+ Can hard reset device : No
14
+
15
+ Reading....
16
+ Can play audio : Yes
17
+ Can read CD-R : Yes
18
+ Can read CD-RW : Yes
19
+ Can read DVD-ROM : No
20
+
21
+ Writing....
22
+ Can write CD-RW : No
23
+ Can write DVD-R : No
24
+ Can write DVD-RAM : No
25
+ Can write DVD-RW : No
26
+ Can write DVD+RW : No
27
+ __________________________________
28
+
29
+ Disc mode is listed as: CD-DA
30
+ CD-ROM Track List (1 - 1)
31
+ #: MSF LSN Type Green?
32
+ 1: 00:02:00 000000 audio false
33
+ 170: 00:06:02 000302 leadout
34
+ Media Catalog Number (MCN): 0000010271955
35
+ __________________________________
36
+ CD Analysis Report
37
+ Audio CD, CDDB disc ID is 02000401
38
+
39
+ CD-TEXT for Disc:
40
+ PERFORMER: Richard Stallman
41
+ TITLE: Join us now we have the software
42
+ CD-TEXT for Track 1:
43
+ PERFORMER: Richard Stallman
44
+ TITLE: Join us now we have the software
@@ -0,0 +1,13 @@
1
+ // $Id: cdda.toc,v 1.3 2004/07/25 09:57:04 rocky Exp $
2
+
3
+ // Language number should always start with 0
4
+ LANGUAGE 0 {
5
+ // Required fields - at least all CD-TEXT CDs I've seen so far have them.
6
+ TITLE "Join us now we have the software"
7
+ PERFORMER "Richard Stallman"
8
+ }
9
+ CATALOG "0000010271955"
10
+ CD_DA
11
+
12
+ TRACK AUDIO
13
+ FILE "cdda.bin" 00:00:00 00:00:00
@@ -0,0 +1,48 @@
1
+ CD_DA
2
+
3
+ // global CD-TEXT data
4
+
5
+ CD_TEXT {
6
+
7
+ // Mapping from language number (0..7) used in 'LANGUAGE' statements
8
+ // to language code.
9
+ /// LANGUAGE_MAP {
10
+ /// 0 : EN // 9 is the code for ENGLISH,
11
+ /// // I don't know any other language code, yet
12
+ /// }
13
+
14
+ // Language number should always start with 0
15
+ LANGUAGE 0 {
16
+ // Required fields - at least all CD-TEXT CDs I've seen so far have them.
17
+ TITLE "CD Title"
18
+ PERFORMER "Performer"
19
+ DISC_ID "XY12345"
20
+ UPC_EAN "" // usually empty
21
+
22
+ // Further possible items, all of them are optional
23
+ ARRANGER ""
24
+ SONGWRITER ""
25
+ MESSAGE ""
26
+ GENRE "" // I'm not sure if this should be really ascii data
27
+ }
28
+ }
29
+
30
+
31
+ TRACK AUDIO
32
+ // track specific CD-TEXT data
33
+ CD_TEXT {
34
+ LANGUAGE 0 {
35
+ // if an item is defined for one track it should be defined for all tracks
36
+ TITLE "Track Title"
37
+
38
+ PERFORMER "Performer"
39
+ ISRC "US-XX1-98-01234"
40
+
41
+ ARRANGER ""
42
+ SONGWRITER ""
43
+ MESSAGE ""
44
+ }
45
+ }
46
+
47
+ SILENCE 1:0:0
48
+
@@ -0,0 +1,53 @@
1
+ #!/bin/sh
2
+ #$Id: check_cd_read.sh,v 1.6 2004/05/07 02:15:49 rocky Exp $
3
+ #
4
+ # Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
5
+ #
6
+ # This program is free software; you can redistribute it and/or modify
7
+ # it under the terms of the GNU General Public License as published by
8
+ # the Free Software Foundation; either version 2 of the License, or
9
+ # (at your option) any later version.
10
+ #
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ # GNU General Public License for more details.
15
+ #
16
+ # You should have received a copy of the GNU General Public License
17
+ # along with this program; if not, write to the Free Software
18
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ #
20
+ # Tests to see that CD reading is correct (via cd-read).
21
+
22
+ if test -z $srcdir ; then
23
+ srcdir=`pwd`
24
+ fi
25
+
26
+ . ${srcdir}/check_common_fn
27
+
28
+ if test ! -x ../src/cd-read ; then
29
+ exit 77
30
+ fi
31
+
32
+ BASE=`basename $0 .sh`
33
+
34
+ fname=cdda
35
+ testnum=CD-DA
36
+ opts="-c ${srcdir}/${fname}.cue --mode=red --start=0"
37
+ test_cd_read "$opts" ${fname}-read.dump ${srcdir}/${fname}-read.right
38
+ RC=$?
39
+ check_result $RC "cd-read CUE test $testnum" "cd-read $opts"
40
+
41
+ fname=isofs-m1
42
+ testnum=MODE1
43
+ opts="-i ${srcdir}/${fname}.cue --mode m1f1 -s 26 -n 2"
44
+ test_cd_read "$opts" ${fname}-read.dump ${srcdir}/${fname}-read.right
45
+ RC=$?
46
+ check_result $RC "cd-read CUE test $testnum" "cd-read $opts"
47
+
48
+ exit $RC
49
+
50
+ #;;; Local Variables: ***
51
+ #;;; mode:shell-script ***
52
+ #;;; eval: (sh-set-shell "bash") ***
53
+ #;;; End: ***