rb_cdio 0.1.1 → 0.2.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 (154) hide show
  1. data/ChangeLog.txt +17 -2
  2. data/VERSION +1 -1
  3. data/doc/classes/CdIo.html +19 -31
  4. data/doc/classes/CdIo.src/M000001.html +1 -1
  5. data/doc/classes/CdIo.src/M000002.html +1 -1
  6. data/doc/classes/CdIo.src/M000003.html +1 -1
  7. data/doc/classes/CdIo.src/M000004.html +1 -1
  8. data/doc/classes/CdIo.src/M000005.html +1 -1
  9. data/doc/classes/CdIo.src/M000006.html +1 -1
  10. data/doc/classes/CdIo.src/M000007.html +1 -1
  11. data/doc/classes/CdIo.src/M000008.html +1 -1
  12. data/doc/classes/CdIo/Cd.html +51 -51
  13. data/doc/classes/CdIo/Cd.src/{M000011.html → M000020.html} +1 -1
  14. data/doc/classes/CdIo/Cd.src/M000021.html +3 -3
  15. data/doc/classes/CdIo/Cd.src/M000022.html +3 -3
  16. data/doc/classes/CdIo/Cd.src/M000023.html +3 -3
  17. data/doc/classes/CdIo/Cd.src/M000024.html +3 -3
  18. data/doc/classes/CdIo/Cd.src/M000025.html +3 -3
  19. data/doc/classes/CdIo/Cd.src/M000026.html +3 -3
  20. data/doc/classes/CdIo/Cd.src/M000027.html +3 -3
  21. data/doc/classes/CdIo/Cd.src/M000028.html +3 -3
  22. data/doc/classes/CdIo/Cd.src/M000029.html +3 -3
  23. data/doc/classes/CdIo/Cd.src/M000030.html +3 -3
  24. data/doc/classes/CdIo/Cd.src/M000031.html +3 -3
  25. data/doc/classes/CdIo/Cd.src/M000032.html +3 -3
  26. data/doc/classes/CdIo/Cd.src/M000033.html +3 -3
  27. data/doc/classes/CdIo/Cd.src/M000034.html +3 -3
  28. data/doc/classes/CdIo/Cd.src/M000035.html +3 -3
  29. data/doc/classes/CdIo/Cdda.html +428 -0
  30. data/doc/classes/CdIo/{Cd.src/M000016.html → Cdda.src/M000009.html} +3 -3
  31. data/doc/classes/CdIo/{Cd.src/M000013.html → Cdda.src/M000010.html} +3 -3
  32. data/doc/classes/CdIo/{Cd.src/M000036.html → Cdda.src/M000011.html} +3 -3
  33. data/doc/classes/CdIo/{Cd.src/M000014.html → Cdda.src/M000012.html} +3 -3
  34. data/doc/classes/CdIo/Cdda.src/M000013.html +17 -0
  35. data/doc/classes/CdIo/{Cd.src/M000019.html → Cdda.src/M000014.html} +3 -3
  36. data/doc/classes/CdIo/Cdda.src/M000015.html +17 -0
  37. data/doc/classes/CdIo/Cdda.src/M000016.html +17 -0
  38. data/doc/classes/CdIo/Cdda.src/M000017.html +17 -0
  39. data/doc/classes/CdIo/Cdda.src/M000018.html +17 -0
  40. data/doc/classes/CdIo/Cdda.src/M000019.html +17 -0
  41. data/doc/classes/CdIo/{Cd.src/M000015.html → Cdda.src/M000020.html} +3 -3
  42. data/doc/classes/CdIo/{Cd.src/M000017.html → Cdda.src/M000021.html} +3 -3
  43. data/doc/classes/CdIo/{Cd.src/M000018.html → Cdda.src/M000022.html} +3 -3
  44. data/doc/classes/CdIo/Cdda.src/M000023.html +17 -0
  45. data/doc/classes/CdIo/Cdda.src/M000024.html +17 -0
  46. data/doc/classes/CdIo/Exception.html +118 -0
  47. data/doc/classes/CdIo/Exception/BadParameter.html +111 -0
  48. data/doc/classes/CdIo/Exception/BadPointer.html +111 -0
  49. data/doc/classes/CdIo/{Device.html → Exception/CddbConn.html} +5 -5
  50. data/doc/classes/CdIo/Exception/CddbError.html +111 -0
  51. data/doc/classes/CdIo/{CdText.html → Exception/Error.html} +5 -5
  52. data/doc/{files/test/testall_rb.html → classes/CdIo/Exception/NoDriver.html} +26 -25
  53. data/doc/classes/CdIo/Exception/NotPermitted.html +111 -0
  54. data/doc/classes/CdIo/Exception/Unsupported.html +111 -0
  55. data/doc/classes/CdIo/Track.html +16 -16
  56. data/doc/classes/CdIo/Track.src/M000017.html +3 -3
  57. data/doc/classes/CdIo/Track.src/M000018.html +3 -3
  58. data/doc/classes/CdIo/Track.src/M000019.html +3 -3
  59. data/doc/classes/CdIo/Track.src/{M000009.html → M000025.html} +1 -1
  60. data/doc/classes/CdIo/Track.src/{M000010.html → M000026.html} +1 -1
  61. data/doc/classes/CdIo/Track.src/{M000011.html → M000027.html} +1 -1
  62. data/doc/classes/CdIo/TrackCdda.html +169 -0
  63. data/doc/classes/CdIo/TrackCdda.src/M000031.html +17 -0
  64. data/doc/classes/CdIo/TrackCdda.src/M000039.html +17 -0
  65. data/doc/classes/CdIo/TrackCdda.src/M000040.html +17 -0
  66. data/doc/classes/CdIo/TrackCdda.src/M000041.html +17 -0
  67. data/doc/classes/CdIo/Tracks.html +15 -15
  68. data/doc/classes/CdIo/Tracks.src/{M000020.html → M000028.html} +1 -1
  69. data/doc/classes/CdIo/Tracks.src/{M000021.html → M000029.html} +1 -1
  70. data/doc/classes/CdIo/Tracks.src/{M000022.html → M000030.html} +1 -1
  71. data/doc/classes/CdIo/{Cd.src/M000012.html → Tracks.src/M000036.html} +3 -3
  72. data/doc/classes/CdIo/Tracks.src/M000037.html +17 -0
  73. data/doc/classes/CdIo/Tracks.src/M000038.html +17 -0
  74. data/doc/created.rid +1 -1
  75. data/doc/files/__/rb_cdio_def_rb.html +235 -0
  76. data/doc/files/rb_cdio_def_rb.html +80 -5
  77. data/doc/fr_class_index.html +11 -0
  78. data/doc/fr_method_index.html +33 -14
  79. data/ext/CdIo.c +58 -3
  80. data/ext/CdIo.h +74 -1
  81. data/ext/CdIo_Cd.c +33 -80
  82. data/ext/CdIo_Cdda.c +607 -0
  83. data/ext/CdIo_Common.c +53 -8
  84. data/ext/CdIo_Modulo.c +12 -4
  85. data/ext/CdIo_Track.c +23 -35
  86. data/ext/CdIo_TrackCdda.c +13 -0
  87. data/ext/CdIo_TrackIso9660.c +1 -9
  88. data/ext/CdIo_Tracks.c +12 -2
  89. data/ext/extconf.rb +3 -0
  90. data/ext/mkmf.log +23 -0
  91. data/lib/rb_cdio_read.rb +23 -14
  92. data/rb_cdio.def.rb +157 -16
  93. data/test/data/bad-file.toc +13 -0
  94. data/test/data/cdda-read.right +3 -0
  95. data/test/data/cdda.cue +1 -0
  96. data/test/data/cdda.right +5 -28
  97. data/test/data/cdda.toc +2 -1
  98. data/test/data/check_common_fn +9 -9
  99. data/test/data/check_common_fn.in +9 -9
  100. data/test/data/check_cue.sh.in +35 -20
  101. data/test/data/check_iso.sh.in +23 -3
  102. data/test/data/check_nrg.sh.in +18 -16
  103. data/test/data/check_opts0.right +2 -24
  104. data/test/data/check_opts1.right +2 -24
  105. data/test/data/check_opts2.right +5 -27
  106. data/test/data/check_opts3.right +5 -27
  107. data/test/data/check_opts4.right +5 -27
  108. data/test/data/check_opts5.right +5 -27
  109. data/test/data/check_opts6.right +5 -27
  110. data/test/data/check_opts7.right +5 -27
  111. data/test/data/check_paranoia.sh.in +78 -0
  112. data/test/data/check_sizeof.c +5 -5
  113. data/test/data/copying-rr.iso +0 -0
  114. data/test/data/copying-rr.right +25 -0
  115. data/test/data/copying.right +3 -3
  116. data/test/data/data5.toc +3 -3
  117. data/test/data/data6.toc +2 -2
  118. data/test/data/data7.toc +3 -3
  119. data/test/data/isofs-m1-no-rr.right +33 -0
  120. data/test/data/isofs-m1-read.right +3 -0
  121. data/test/data/isofs-m1.right +12 -36
  122. data/test/data/joliet-nojoliet.right +23 -0
  123. data/test/data/joliet.iso +0 -0
  124. data/test/data/joliet.right +23 -0
  125. data/test/data/testbincue.c +19 -3
  126. data/test/data/testdefault.c +8 -2
  127. data/test/data/testiso9660.c +10 -5
  128. data/test/data/testparanoia.c +185 -0
  129. data/test/data/testtoc.c +18 -5
  130. data/test/data/vcd2.toc +23 -0
  131. data/test/data/vcd_demo.right +55 -79
  132. data/test/data/vcd_demo_vcdinfo.right +97 -0
  133. data/test/data/videocd.right +37 -61
  134. data/test/test_cdda.rb +73 -0
  135. data/test/testall.rb +1 -0
  136. data/test/testbincue.rb +6 -1
  137. data/test/testclose.rb +6 -1
  138. data/test/testmethods.rb +29 -21
  139. data/test/testtoc.rb +9 -2
  140. metadata +137 -80
  141. data/doc/classes/CdIo.src/M000009.html +0 -17
  142. data/doc/classes/CdIo.src/M000010.html +0 -17
  143. data/doc/classes/CdIo.src/M000011.html +0 -17
  144. data/doc/classes/CdIo.src/M000012.html +0 -17
  145. data/doc/classes/CdIo.src/M000013.html +0 -17
  146. data/doc/classes/CdIo.src/M000014.html +0 -17
  147. data/doc/classes/CdIo.src/M000015.html +0 -17
  148. data/doc/classes/CdIo.src/M000016.html +0 -17
  149. data/doc/classes/CdIo/Track.src/M000020.html +0 -17
  150. data/test/data/check_cd_read.sh +0 -53
  151. data/test/data/check_cue.sh +0 -102
  152. data/test/data/check_iso.sh +0 -32
  153. data/test/data/check_nrg.sh +0 -68
  154. data/test/data/check_opts.sh +0 -33
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>get_cdtext (CdIo::Cd)</title>
8
+ <title>tracks (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 55</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_cdtext</span>(<span class="ruby-identifier">track</span>)
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 172</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tracks</span>
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>get_tracks (CdIo::Cd)</title>
8
+ <title>is_cd? (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 59</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_tracks</span>
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 176</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_cd?</span>
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>is_cd? (CdIo::Cd)</title>
8
+ <title>is_dvd? (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 62</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_cd?</span>
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 179</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_dvd?</span>
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>is_dvd? (CdIo::Cd)</title>
8
+ <title>drive_cap (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 65</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_dvd?</span>
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 183</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">drive_cap</span>
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>get_drive_cap (CdIo::Cd)</title>
8
+ <title>hwinfo (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 67</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_drive_cap</span>
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 188</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hwinfo</span>
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>get_hwinfo (CdIo::Cd)</title>
8
+ <title>close (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 69</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_hwinfo</span>
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 192</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>close (CdIo::Cd)</title>
8
+ <title>new (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 72</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 169</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">device</span>,<span class="ruby-identifier">driver</span>)
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>get_arg (CdIo::Cd)</title>
8
+ <title>cdtext (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 51</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_arg</span>(<span class="ruby-identifier">key</span>)
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 174</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cdtext</span>(<span class="ruby-identifier">track</span>)
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>get_cdtext (CdIo::Cd)</title>
8
+ <title>tracks (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 55</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_cdtext</span>(<span class="ruby-identifier">track</span>)
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 179</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tracks</span>
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>get_tracks (CdIo::Cd)</title>
8
+ <title>is_cd? (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 59</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_tracks</span>
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 183</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_cd?</span>
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>is_cd? (CdIo::Cd)</title>
8
+ <title>is_dvd? (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 62</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_cd?</span>
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 186</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_dvd?</span>
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>is_dvd? (CdIo::Cd)</title>
8
+ <title>drive_cap (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 65</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_dvd?</span>
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 190</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">drive_cap</span>
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>get_drive_cap (CdIo::Cd)</title>
8
+ <title>hwinfo (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 67</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_drive_cap</span>
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 195</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hwinfo</span>
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -5,13 +5,13 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>get_hwinfo (CdIo::Cd)</title>
8
+ <title>close (CdIo::Cd)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 69</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_hwinfo</span>
13
+ <pre><span class="ruby-comment cmt"># File rb_cdio.def.rb, line 199</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
15
15
  <span class="ruby-keyword kw">end</span></pre>
16
16
  </body>
17
17
  </html>
@@ -0,0 +1,428 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: CdIo::Cdda</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">CdIo::Cdda</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/rb_cdio_def_rb.html">
59
+ rb_cdio.def.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+ <div id="description">
76
+ <p>
77
+ module with extra methods to extends a normal <a href="Cd.html">Cd</a>
78
+ </p>
79
+
80
+ </div>
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000019">artist</a>&nbsp;&nbsp;
90
+ <a href="#M000021">category</a>&nbsp;&nbsp;
91
+ <a href="#M000018">cddb_fetch</a>&nbsp;&nbsp;
92
+ <a href="#M000016">cddb_id</a>&nbsp;&nbsp;
93
+ <a href="#M000017">cddb_matches</a>&nbsp;&nbsp;
94
+ <a href="#M000024">extra_data</a>&nbsp;&nbsp;
95
+ <a href="#M000022">genre</a>&nbsp;&nbsp;
96
+ <a href="#M000023">length</a>&nbsp;&nbsp;
97
+ <a href="#M000012">pause</a>&nbsp;&nbsp;
98
+ <a href="#M000011">play</a>&nbsp;&nbsp;
99
+ <a href="#M000013">resume</a>&nbsp;&nbsp;
100
+ <a href="#M000014">stop</a>&nbsp;&nbsp;
101
+ <a href="#M000015">subchannel</a>&nbsp;&nbsp;
102
+ <a href="#M000020">title</a>&nbsp;&nbsp;
103
+ <a href="#M000009">volume</a>&nbsp;&nbsp;
104
+ <a href="#M000010">volume=</a>&nbsp;&nbsp;
105
+ </div>
106
+ </div>
107
+
108
+ </div>
109
+
110
+
111
+ <!-- if includes -->
112
+
113
+ <div id="section">
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+ <!-- if method_list -->
123
+ <div id="methods">
124
+ <h3 class="section-bar">Public Instance methods</h3>
125
+
126
+ <div id="method-M000019" class="method-detail">
127
+ <a name="M000019"></a>
128
+
129
+ <div class="method-heading">
130
+ <a href="Cdda.src/M000019.html" target="Code" class="method-signature"
131
+ onclick="popupCode('Cdda.src/M000019.html');return false;">
132
+ <span class="method-name">artist</span><span class="method-args">()</span>
133
+ </a>
134
+ </div>
135
+
136
+ <div class="method-description">
137
+ </div>
138
+ </div>
139
+
140
+ <div id="method-M000021" class="method-detail">
141
+ <a name="M000021"></a>
142
+
143
+ <div class="method-heading">
144
+ <a href="Cdda.src/M000021.html" target="Code" class="method-signature"
145
+ onclick="popupCode('Cdda.src/M000021.html');return false;">
146
+ <span class="method-name">category</span><span class="method-args">()</span>
147
+ </a>
148
+ </div>
149
+
150
+ <div class="method-description">
151
+ </div>
152
+ </div>
153
+
154
+ <div id="method-M000018" class="method-detail">
155
+ <a name="M000018"></a>
156
+
157
+ <div class="method-heading">
158
+ <a href="Cdda.src/M000018.html" target="Code" class="method-signature"
159
+ onclick="popupCode('Cdda.src/M000018.html');return false;">
160
+ <span class="method-name">cddb_fetch</span><span class="method-args">(match)</span>
161
+ </a>
162
+ </div>
163
+
164
+ <div class="method-description">
165
+ <p>
166
+ Get the match number x on cddb. Add information for the cd and the tracks
167
+ Requires <b>libcddb</b>
168
+ </p>
169
+ <pre>
170
+ cd.cddb_fetch(1)
171
+ ==&gt; true
172
+ t=cd.tracks[1]
173
+ puts t.number.to_s+&quot;-&quot;+t.artist+&quot;-&quot;+t.title
174
+ ==&gt; 1-Seru Giran-Peperina
175
+ </pre>
176
+ </div>
177
+ </div>
178
+
179
+ <div id="method-M000016" class="method-detail">
180
+ <a name="M000016"></a>
181
+
182
+ <div class="method-heading">
183
+ <a href="Cdda.src/M000016.html" target="Code" class="method-signature"
184
+ onclick="popupCode('Cdda.src/M000016.html');return false;">
185
+ <span class="method-name">cddb_id</span><span class="method-args">()</span>
186
+ </a>
187
+ </div>
188
+
189
+ <div class="method-description">
190
+ <p>
191
+ get the cddb key for the cd, in hex format
192
+ </p>
193
+ <p>
194
+ cd.cddb_id
195
+ </p>
196
+ <h2>&gt; &quot;9609630b&quot;</h2>
197
+ </div>
198
+ </div>
199
+
200
+ <div id="method-M000017" class="method-detail">
201
+ <a name="M000017"></a>
202
+
203
+ <div class="method-heading">
204
+ <a href="Cdda.src/M000017.html" target="Code" class="method-signature"
205
+ onclick="popupCode('Cdda.src/M000017.html');return false;">
206
+ <span class="method-name">cddb_matches</span><span class="method-args">()</span>
207
+ </a>
208
+ </div>
209
+
210
+ <div class="method-description">
211
+ <p>
212
+ get matches for cddb in an array. Requires <b>libcddb</b>
213
+ </p>
214
+ <pre>
215
+ cd.cddb_matches
216
+ ==&gt; [{&quot;artist&quot;=&gt;&quot;Seru Giran&quot;, &quot;category&quot;=&gt;&quot;rock&quot;, &quot;title&quot;=&gt;&quot;Peperina&quot;, &quot;id&quot;=&gt;&quot;2466865419&quot;, &quot;length&quot;=&gt;&quot;2403&quot;, &quot;year&quot;=&gt;&quot;0&quot;, &quot;genre&quot;=&gt;&quot;rock&quot;}, {&quot;artist&quot;=&gt;&quot;Seru Giran&quot;, &quot;category&quot;=&gt;&quot;rock&quot;, &quot;title&quot;=&gt;&quot;Peperina&quot;, &quot;id&quot;=&gt;&quot;2517197579&quot;, &quot;length&quot;=&gt;&quot;2403&quot;, &quot;year&quot;=&gt;&quot;0&quot;, &quot;genre&quot;=&gt;&quot;rock&quot;}]
217
+ </pre>
218
+ </div>
219
+ </div>
220
+
221
+ <div id="method-M000024" class="method-detail">
222
+ <a name="M000024"></a>
223
+
224
+ <div class="method-heading">
225
+ <a href="Cdda.src/M000024.html" target="Code" class="method-signature"
226
+ onclick="popupCode('Cdda.src/M000024.html');return false;">
227
+ <span class="method-name">extra_data</span><span class="method-args">()</span>
228
+ </a>
229
+ </div>
230
+
231
+ <div class="method-description">
232
+ </div>
233
+ </div>
234
+
235
+ <div id="method-M000022" class="method-detail">
236
+ <a name="M000022"></a>
237
+
238
+ <div class="method-heading">
239
+ <a href="Cdda.src/M000022.html" target="Code" class="method-signature"
240
+ onclick="popupCode('Cdda.src/M000022.html');return false;">
241
+ <span class="method-name">genre</span><span class="method-args">()</span>
242
+ </a>
243
+ </div>
244
+
245
+ <div class="method-description">
246
+ </div>
247
+ </div>
248
+
249
+ <div id="method-M000023" class="method-detail">
250
+ <a name="M000023"></a>
251
+
252
+ <div class="method-heading">
253
+ <a href="Cdda.src/M000023.html" target="Code" class="method-signature"
254
+ onclick="popupCode('Cdda.src/M000023.html');return false;">
255
+ <span class="method-name">length</span><span class="method-args">()</span>
256
+ </a>
257
+ </div>
258
+
259
+ <div class="method-description">
260
+ </div>
261
+ </div>
262
+
263
+ <div id="method-M000012" class="method-detail">
264
+ <a name="M000012"></a>
265
+
266
+ <div class="method-heading">
267
+ <a href="Cdda.src/M000012.html" target="Code" class="method-signature"
268
+ onclick="popupCode('Cdda.src/M000012.html');return false;">
269
+ <span class="method-name">pause</span><span class="method-args">()</span>
270
+ </a>
271
+ </div>
272
+
273
+ <div class="method-description">
274
+ <p>
275
+ pause the reproduction of cd
276
+ </p>
277
+ </div>
278
+ </div>
279
+
280
+ <div id="method-M000011" class="method-detail">
281
+ <a name="M000011"></a>
282
+
283
+ <div class="method-heading">
284
+ <a href="Cdda.src/M000011.html" target="Code" class="method-signature"
285
+ onclick="popupCode('Cdda.src/M000011.html');return false;">
286
+ <span class="method-name">play</span><span class="method-args">()</span>
287
+ </a>
288
+ </div>
289
+
290
+ <div class="method-description">
291
+ <p>
292
+ play cd tracks. Returns an array with the first and the last track to play
293
+ Ex.: cd with 11 tracks:
294
+ </p>
295
+ <pre>
296
+ cd.play
297
+ ==&gt; [1,11]
298
+ cd.play(1)
299
+ ==&gt; [1,1]
300
+ cd.play(2,20)
301
+ ==&gt; [2,11]
302
+ </pre>
303
+ </div>
304
+ </div>
305
+
306
+ <div id="method-M000013" class="method-detail">
307
+ <a name="M000013"></a>
308
+
309
+ <div class="method-heading">
310
+ <a href="Cdda.src/M000013.html" target="Code" class="method-signature"
311
+ onclick="popupCode('Cdda.src/M000013.html');return false;">
312
+ <span class="method-name">resume</span><span class="method-args">()</span>
313
+ </a>
314
+ </div>
315
+
316
+ <div class="method-description">
317
+ <p>
318
+ resume the reproduction of cd after a pause
319
+ </p>
320
+ </div>
321
+ </div>
322
+
323
+ <div id="method-M000014" class="method-detail">
324
+ <a name="M000014"></a>
325
+
326
+ <div class="method-heading">
327
+ <a href="Cdda.src/M000014.html" target="Code" class="method-signature"
328
+ onclick="popupCode('Cdda.src/M000014.html');return false;">
329
+ <span class="method-name">stop</span><span class="method-args">()</span>
330
+ </a>
331
+ </div>
332
+
333
+ <div class="method-description">
334
+ <p>
335
+ stop the reproduction of the cd
336
+ </p>
337
+ </div>
338
+ </div>
339
+
340
+ <div id="method-M000015" class="method-detail">
341
+ <a name="M000015"></a>
342
+
343
+ <div class="method-heading">
344
+ <a href="Cdda.src/M000015.html" target="Code" class="method-signature"
345
+ onclick="popupCode('Cdda.src/M000015.html');return false;">
346
+ <span class="method-name">subchannel</span><span class="method-args">()</span>
347
+ </a>
348
+ </div>
349
+
350
+ <div class="method-description">
351
+ <p>
352
+ get subchannel information of reproduction of the cd
353
+ </p>
354
+ <pre>
355
+ cd.subchannel
356
+ ==&gt; {&quot;control&quot;=&gt;0, &quot;rel_addr&quot;=&gt;&quot;00:00:02&quot;, &quot;abs_addr&quot;=&gt;&quot;00:02:02&quot;, &quot;format&quot;=&gt;212, &quot;audio_status_desc&quot;=&gt;&quot;no_status&quot;, &quot;track&quot;=&gt;1, &quot;audio_status&quot;=&gt;21, &quot;index&quot;=&gt;1, &quot;address&quot;=&gt;6}
357
+ </pre>
358
+ </div>
359
+ </div>
360
+
361
+ <div id="method-M000020" class="method-detail">
362
+ <a name="M000020"></a>
363
+
364
+ <div class="method-heading">
365
+ <a href="Cdda.src/M000020.html" target="Code" class="method-signature"
366
+ onclick="popupCode('Cdda.src/M000020.html');return false;">
367
+ <span class="method-name">title</span><span class="method-args">()</span>
368
+ </a>
369
+ </div>
370
+
371
+ <div class="method-description">
372
+ </div>
373
+ </div>
374
+
375
+ <div id="method-M000009" class="method-detail">
376
+ <a name="M000009"></a>
377
+
378
+ <div class="method-heading">
379
+ <a href="Cdda.src/M000009.html" target="Code" class="method-signature"
380
+ onclick="popupCode('Cdda.src/M000009.html');return false;">
381
+ <span class="method-name">volume</span><span class="method-args">()</span>
382
+ </a>
383
+ </div>
384
+
385
+ <div class="method-description">
386
+ <p>
387
+ get the volume in an array.
388
+ </p>
389
+ <pre>
390
+ cd.volume
391
+ ==&gt; [255, 255, 0, 0]
392
+ </pre>
393
+ </div>
394
+ </div>
395
+
396
+ <div id="method-M000010" class="method-detail">
397
+ <a name="M000010"></a>
398
+
399
+ <div class="method-heading">
400
+ <a href="Cdda.src/M000010.html" target="Code" class="method-signature"
401
+ onclick="popupCode('Cdda.src/M000010.html');return false;">
402
+ <span class="method-name">volume=</span><span class="method-args">(vol_set)</span>
403
+ </a>
404
+ </div>
405
+
406
+ <div class="method-description">
407
+ <p>
408
+ set the volume. You have to put an array
409
+ </p>
410
+ <p>
411
+ cd.volume=[255,255,0,0]
412
+ </p>
413
+ </div>
414
+ </div>
415
+
416
+
417
+ </div>
418
+
419
+
420
+ </div>
421
+
422
+
423
+ <div id="validator-badges">
424
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
425
+ </div>
426
+
427
+ </body>
428
+ </html>