rb_cdio 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
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
Binary file
@@ -0,0 +1,92 @@
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 DATA Form 2
30
+ CD-ROM Track List (1 - 5)
31
+ #: MSF LSN Type Green?
32
+ 1: 00:02:00 000000 XA true
33
+ 2: 00:13:01 000826 XA true
34
+ 3: 00:16:01 001051 XA true
35
+ 4: 00:19:01 001276 XA true
36
+ 5: 00:22:01 001501 XA true
37
+ 170: 00:25:01 001726 leadout
38
+ Media Catalog Number (MCN): not available
39
+ __________________________________
40
+ CD Analysis Report
41
+ CD-ROM with CD-RTOS and ISO 9660 filesystem
42
+ ISO 9660: 676 blocks, label `SVIDEOCD '
43
+ Application: SVIDEOCD.APP;1
44
+ Preparer : GNU VCDIMAGER CHECK MODE
45
+ Publisher : PUBL_ID
46
+ System : CD-RTOS CD-BRIDGE
47
+ Volume : SVIDEOCD
48
+ Volume Set :
49
+ ISO9660 filesystem
50
+ root dir in PVD set to lsn 18
51
+
52
+ /:
53
+ d d---1xrxrxr 0 0 [fn 00] [LSN 18] 2048 Jul 14 1978 00:00 .
54
+ d d---1xrxrxr 0 0 [fn 00] [LSN 18] 2048 Jul 14 1978 00:00 ..
55
+ d d---1xrxrxr 0 0 [fn 00] [LSN 19] 2048 Jul 14 1978 00:00 ext
56
+ d d---1xrxrxr 0 0 [fn 00] [LSN 20] 2048 Jul 14 1978 00:00 mpeg2
57
+ d d---1xrxrxr 0 0 [fn 00] [LSN 21] 2048 Jul 14 1978 00:00 segment
58
+ d d---1xrxrxr 0 0 [fn 00] [LSN 22] 2048 Jul 14 1978 00:00 svcd
59
+
60
+ /EXT/:
61
+ d d---1xrxrxr 0 0 [fn 00] [LSN 19] 2048 Jul 14 1978 00:00 .
62
+ d d---1xrxrxr 0 0 [fn 00] [LSN 18] 2048 Jul 14 1978 00:00 ..
63
+ - ----1xrxrxr 0 0 [fn 00] [LSN 675] 78 Jul 14 1978 00:00 scandata.dat
64
+
65
+ /MPEG2/:
66
+ d d---1xrxrxr 0 0 [fn 00] [LSN 20] 2048 Jul 14 1978 00:00 .
67
+ d d---1xrxrxr 0 0 [fn 00] [LSN 18] 2048 Jul 14 1978 00:00 ..
68
+ - ---2-xrxrxr 0 0 [fn 00] [LSN 826] 174300 ( 153600) Jul 14 1978 00:00 avseq01.mpg
69
+ - ---2-xrxrxr 0 0 [fn 00] [LSN 1051] 174300 ( 153600) Jul 14 1978 00:00 avseq02.mpg
70
+ - ---2-xrxrxr 0 0 [fn 00] [LSN 1276] 174300 ( 153600) Jul 14 1978 00:00 avseq03.mpg
71
+ - ---2-xrxrxr 0 0 [fn 00] [LSN 1501] 174300 ( 153600) Jul 14 1978 00:00 avseq04.mpg
72
+
73
+ /SEGMENT/:
74
+ d d---1xrxrxr 0 0 [fn 00] [LSN 21] 2048 Jul 14 1978 00:00 .
75
+ d d---1xrxrxr 0 0 [fn 00] [LSN 18] 2048 Jul 14 1978 00:00 ..
76
+ - ---2-xrxrxr 0 0 [fn 00] [LSN 225] 65072 ( 57344) Jul 14 1978 00:00 item0001.mpg
77
+ - ---2-xrxrxr 0 0 [fn 00] [LSN 375] 65072 ( 57344) Jul 14 1978 00:00 item0002.mpg
78
+ - ---2-xrxrxr 0 0 [fn 00] [LSN 525] 65072 ( 57344) Jul 14 1978 00:00 item0003.mpg
79
+
80
+ /SVCD/:
81
+ d d---1xrxrxr 0 0 [fn 00] [LSN 22] 2048 Jul 14 1978 00:00 .
82
+ d d---1xrxrxr 0 0 [fn 00] [LSN 18] 2048 Jul 14 1978 00:00 ..
83
+ - ----1xrxrxr 0 0 [fn 00] [LSN 151] 2048 Jul 14 1978 00:00 entries.svd
84
+ - ----1xrxrxr 0 0 [fn 00] [LSN 150] 2048 Jul 14 1978 00:00 info.svd
85
+ - ----1xrxrxr 0 0 [fn 00] [LSN 152] 65536 Jul 14 1978 00:00 lot.svd
86
+ - ----1xrxrxr 0 0 [fn 00] [LSN 184] 112 Jul 14 1978 00:00 psd.svd
87
+ - ----1xrxrxr 0 0 [fn 00] [LSN 186] 40 Jul 14 1978 00:00 search.dat
88
+ - ----1xrxrxr 0 0 [fn 00] [LSN 185] 2048 Jul 14 1978 00:00 tracks.svd
89
+
90
+ XA sectors Super Video CD (SVCD) or Chaoji Video CD (CVD)
91
+ session #2 starts at track 2, LSN: 826, ISO 9660 blocks: 676
92
+ ISO 9660: 676 blocks, label `SVIDEOCD '
@@ -0,0 +1,4 @@
1
+ require 'test/unit'
2
+ require 'testbincue'
3
+ require 'testtoc'
4
+
@@ -0,0 +1,30 @@
1
+ require "../ext/rb_cdio"
2
+ require 'test/unit'
3
+
4
+ class Testbincue < Test::Unit::TestCase
5
+ def setup
6
+ @data = File.dirname(__FILE__)+"/data"
7
+ end
8
+
9
+ # def teardown
10
+ # end
11
+
12
+ def test_good_cues
13
+ %w{cdda.cue isofs-m1.cue}.each {|cue|
14
+ cue=@data+"/"+cue
15
+ assert(CdIo.is_cuefile(cue),"Incorrect: "+cue+" doesn't parse as a CDRWin CUE file")
16
+ }
17
+ end
18
+ def test_bad_cues
19
+ ["bad-cat1.cue",
20
+ "bad-cat2.cue",
21
+ "bad-cat3.cue",
22
+ "bad-mode1.cue",
23
+ "bad-msf-1.cue",
24
+ "bad-msf-2.cue",
25
+ "bad-msf-3.cue"].each do |cue|
26
+ cue=@data+"/"+cue
27
+ assert(!CdIo.is_cuefile(cue),"Incorrect: "+cue+" parses as a CDRWin CUE file.");
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,45 @@
1
+ require "../ext/rb_cdio"
2
+ require 'test/unit'
3
+
4
+ class Testtoc < Test::Unit::TestCase
5
+ def setup
6
+ @data = File.dirname(__FILE__)+"/data"
7
+ end
8
+
9
+ # def teardown
10
+ # end
11
+
12
+ def test_good_toc
13
+ ["cdtext.toc",
14
+ "t1.toc",
15
+ "t2.toc",
16
+ "t3.toc",
17
+ "t4.toc",
18
+ "t5.toc",
19
+ "t6.toc",
20
+ "t7.toc",
21
+ "t8.toc",
22
+ "t9.toc",
23
+ "data1.toc",
24
+ "data2.toc",
25
+ "data5.toc",
26
+ "data6.toc",
27
+ "data7.toc"].each {|toc|
28
+ toc=@data+"/"+toc
29
+ assert(CdIo.is_tocfile(toc),"Incorrect: "+toc+" doesn't parse as a cdrdao TOC file")
30
+
31
+ }
32
+ end
33
+ def test_bad_toc
34
+ ["bad-msf-1.toc",
35
+ "bad-msf-2.toc",
36
+ "bad-msf-3.toc",
37
+ "bad-cat1.toc",
38
+ "bad-cat2.toc",
39
+ "bad-cat3.toc",
40
+ "bad-mode1.toc"].each do |toc|
41
+ toc=@data+"/"+toc
42
+ assert(!CdIo.is_tocfile(toc),"Incorrect: "+toc+" parses as a cdrdao TOC file");
43
+ end
44
+ end
45
+ end
metadata ADDED
@@ -0,0 +1,141 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.8.10
3
+ specification_version: 1
4
+ name: rb_cdio
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.1.0
7
+ date: 2005-05-24
8
+ summary: Bindings for libcdio
9
+ require_paths:
10
+ - lib
11
+ email:
12
+ homepage:
13
+ rubyforge_project:
14
+ description: "The libcdio package contains a library which encapsulates CD-ROM reading and
15
+ control. Applications wishing to be oblivious of the OS- and device-dependent
16
+ properties of a CD-ROM can use this library. rb_cdio is a library for Ruby that
17
+ creates a module CdIo and several classes to use the libcdio library."
18
+ autorequire: rb_cdio
19
+ default_executable:
20
+ bindir: bin
21
+ has_rdoc: false
22
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
23
+ requirements:
24
+ -
25
+ - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: 1.8.0
28
+ version:
29
+ platform: ruby
30
+ authors:
31
+ - Claudio Bustos
32
+ files:
33
+ - lib/rb_cdio_read.rb
34
+ - test/testbincue.rb
35
+ - test/testtoc.rb
36
+ - test/testall.rb
37
+ - test/data
38
+ - test/data/bad-cat1.cue
39
+ - test/data/bad-cat1.toc
40
+ - test/data/bad-cat2.cue
41
+ - test/data/bad-cat2.toc
42
+ - test/data/bad-cat3.cue
43
+ - test/data/bad-cat3.toc
44
+ - test/data/bad-mode1.cue
45
+ - test/data/bad-mode1.toc
46
+ - test/data/bad-msf-1.cue
47
+ - test/data/bad-msf-1.toc
48
+ - test/data/bad-msf-2.cue
49
+ - test/data/bad-msf-2.toc
50
+ - test/data/bad-msf-3.cue
51
+ - test/data/bad-msf-3.toc
52
+ - test/data/cdda.bin
53
+ - test/data/cdda.cue
54
+ - test/data/cdda-read.right
55
+ - test/data/cdda.right
56
+ - test/data/cdda.toc
57
+ - test/data/cdtext.toc
58
+ - test/data/check_cd_read.sh
59
+ - test/data/check_common_fn
60
+ - test/data/check_common_fn.in
61
+ - test/data/check_cue.sh
62
+ - test/data/check_cue.sh.in
63
+ - test/data/check_iso.sh
64
+ - test/data/check_iso.sh.in
65
+ - test/data/check_nrg.sh
66
+ - test/data/check_nrg.sh.in
67
+ - test/data/check_opts0.right
68
+ - test/data/check_opts1.right
69
+ - test/data/check_opts2.right
70
+ - test/data/check_opts3.right
71
+ - test/data/check_opts4.right
72
+ - test/data/check_opts5.right
73
+ - test/data/check_opts6.right
74
+ - test/data/check_opts7.right
75
+ - test/data/check_opts.sh
76
+ - test/data/check_sizeof
77
+ - test/data/check_sizeof.c
78
+ - test/data/copying.iso
79
+ - test/data/copying.right
80
+ - test/data/data1.toc
81
+ - test/data/data2.toc
82
+ - test/data/data5.toc
83
+ - test/data/data6.toc
84
+ - test/data/data7.toc
85
+ - test/data/isofs-m1.bin
86
+ - test/data/isofs-m1.cue
87
+ - test/data/isofs-m1-read.right
88
+ - test/data/isofs-m1.right
89
+ - test/data/isofs-m1.toc
90
+ - test/data/Makefile
91
+ - test/data/Makefile.am
92
+ - test/data/Makefile.in
93
+ - test/data/t1.toc
94
+ - test/data/t2.toc
95
+ - test/data/t3.toc
96
+ - test/data/t4.toc
97
+ - test/data/t5.toc
98
+ - test/data/t6.toc
99
+ - test/data/t7.toc
100
+ - test/data/t8.toc
101
+ - test/data/t9.toc
102
+ - test/data/testassert
103
+ - test/data/testassert.c
104
+ - test/data/testbincue
105
+ - test/data/testbincue.c
106
+ - test/data/testdefault
107
+ - test/data/testdefault.c
108
+ - test/data/testischar
109
+ - test/data/testischar.c
110
+ - test/data/testiso9660
111
+ - test/data/testiso9660.c
112
+ - test/data/testtoc
113
+ - test/data/testtoc.c
114
+ - test/data/vcd_demo.right
115
+ - test/data/videocd.nrg
116
+ - test/data/videocd.right
117
+ - ext/CdIo_Track.c
118
+ - ext/CdIo.c
119
+ - ext/CdIo_TrackIso9660.c
120
+ - ext/CdIo_Common.c
121
+ - ext/CdIo_Modulo.c
122
+ - ext/CdIo_Cd.c
123
+ - ext/extconf.rb
124
+ - ext/CdIo.h
125
+ - ext/mkmf.log
126
+ - ext/Makefile
127
+ - ext/CdIo_Track.o
128
+ - ext/CdIo.o
129
+ - ext/CdIo_TrackIso9660.o
130
+ - ext/CdIo_Common.o
131
+ - ext/CdIo_Modulo.o
132
+ - ext/CdIo_Cd.o
133
+ test_files: []
134
+ rdoc_options: []
135
+ extra_rdoc_files: []
136
+ executables: []
137
+ extensions:
138
+ - ext/extconf.rb
139
+ requirements:
140
+ - "libcdio, v0.7 or greater"
141
+ dependencies: []