The CD-ROM drive of the read method of CD and execution the method
(1) technical field
The read method of the relevant a kind of music CD of the present invention, particularly relevant a kind of read method with particular music CD of multi session.
(2) background technology
So-called multi session form promptly is to write down a plurality of sections (session) in a slice CD, and section is the zone of a recorded information, and each section comprises front end recognition district (Lead-in), data field (data) and finishes cog region (Lead-out).The front end recognition district is putting down in writing information such as the length, position of slice name, numbering, each rail, and contain the directory area (Table of Contents, TOC).The reference position between each rail is being put down in writing in the directory area, so can exist a pointer to be used to refer to reference position to next section in the directory area, this pointer that is used to refer to next section reference position is usually located at B0h place in the directory area.
Present music CD (audio disk) is the form for single section, and the analysis of its directory area has several tracks (track) of depositing in the same section as shown in Figure 5.As shown in the figure, wherein the 4th behavior pointer (Point) has 17 tracks by 1 to 17 representative, and the discs of single section can be read by general CD-ROM drive (CD drive).
The synoptic diagram of general multi session discs directory area, as shown in Figure 6, section number (Sess.) expression of left has five sections, please see the 4th line pointer (Point), each section all comprises a particular pointer, is positioned at the B0h place, in order to point to the reference position of next section.As the pointer B0h place of first section, position pointed is 05h 06h 01h, and then the reference position of second section is 05h 06h 01h.By that analogy, the pointer B0h place of each section, position pointed is the reference position of next section.
Existing CD player (CD player) only can be play the discs of general music format, and can't read the discs of multi session (Multi-session) form.Perhaps existing CD player only reads first section in the multi session CD and ignores other section.Therefore, for now, the discs of this kind multi session (Multi-session) form only can be read by the CD-ROM drive on the computing machine.
The multi session music CD of some special format, see also Fig. 7 (Fig. 7 comprises Fig. 7 a and Fig. 7 b), begun and later in the directory area of several sections, be used to refer to the pointer to next section reference position by second section, promptly the pointer at B0h place can point to the reference position of repetition.For example, be positioned at the pointer (39h at B0h place in the directory area of second section (sess 02); 05h; 32h), be the reference position of expression the 3rd section (sess 03), be positioned at the pointer at B0h place in the directory area of the 3rd section, be the reference position of expression the 4th section (sess 04), but can find that but these pointers are identical value (39h; 05h; 32h).When situation that aforesaid reference position repeats occurred being in the section of discs, CD-ROM drive just may be stagnated because finishing the action of reading of data even be crashed, caused the infringement of the inconvenient greatly and CD-ROM drive of user.
Because existing CD-ROM drive when reading music CD, all adopts the directory area mode in reading of data district again that reads earlier.Therefore, when the directory area included gross error or repeated data, CD-ROM drive just can be stagnated because finishing the action of reading the directory area, thus also can't continue the data in reading of data district, and then influence the work of reading of playing back music.
Yet existing computer CD ROM reads in the technology, and an effective mechanism or method can be in order to not read the music CD with this kind multi session form.
(3) summary of the invention
In view of this, the object of the present invention is to provide a kind of read method with music CD of special multi session form.When the multi session music CD that is read was general normal multi session CD, method proposed by the invention was also applicable.Therefore, can be realized by CD-ROM drive, increased the convenience that the user uses.
For reaching described purpose, the invention provides a kind of optical disk reading access method, has the optical disc data of a plurality of sections in order to read one, wherein each this section has a pointer, this pointer indicates the reference position of next section on this CD of this section, and this method comprises the following steps: to read to these pointers of these sections of small part at least; Whether the reference position of judging these sections that read according to these pointers has repetition; And the stored data of section that reference position does not have to repeat are read.
The present invention also provides a kind of CD-ROM drive, has the optical disc data of a plurality of sections in order to read one, it is characterized in that each this section has a pointer, this pointer indicates the reference position of next section on this CD of this section, and this CD-ROM drive comprises at least: a memory buffer; One optical read head is in order to read to the pointer of small part section; One section reader deposits in the described memory buffer in order to the stored data of section that reference position do not had repeat; One microprocessor comprises a form determinant, according to these pointers of being read, obtains the reference position of these sections, and judges whether the reference position of these sections has repetition.
Adopt the present invention can be in the memory buffer (buffer) of CD-ROM drive with the data storing of data field, in order to the personal computer at CD-ROM drive place (personal computer, PC) or other computer equipment can carry out the work that follow-up data reads.
Wherein, judge according to pointer whether the reference position of each section has the detailed step of repetition as described below.At first, read first pointer of first section in the multi session music CD, to obtain the second section start position data.First pointer is the pointer that is arranged in the B0h place, directory area of first section, and this pointer is used to refer to the reference position to next section.
Then, according to the second section start position data, read one second pointer of second section in the multi session music CD, to obtain the 3rd section start position data.Then,, read the 3rd pointer of the 3rd section in the multi session music CD, to obtain the 4th section start position data according to the 3rd section start position data.Similarly, second pointer, the 3rd pointer are the pointers that lays respectively at B0h place in the directory area of second section, the 3rd section, are used to refer to the reference position to next section.
At last, compare the 3rd section start position data and the 4th section start position data, when the 3rd section start position data is identical with the 4th section start position data, judge that the start bit of the 3rd section and the 4th section is equipped with repetition, be the music CD of special multi session.
In addition, when inspecting discs when being the music CD of special multi session, also can be with CD-ROM drive one cancellation of decoding audit function (disable), i.e. the decoding audit function of c2point.C2point decoding audit function if find wrong situation, is then given errored response personal computer or other computer equipment at CD-ROM drive place in order to when data are deciphered.But when being the multi session music CD of aforementioned special format as if the discs that is read, because stored data layout is different from the general data form in the discs, this discs can be judged to be wrong situation if carry out c2point decoding audit function, and response causes the result that can not play to personal computer or other computer equipment at CD-ROM drive place.Therefore, when reading discs is defined as special multi session music CD, with the cancellation of CD-ROM drive c2point decoding audit function, in order to the work of follow-up play.
As from the foregoing, the problem that institute of the present invention desire solves is, when CD-ROM drive reads an aforementioned special format music CD, can cause can't the read and write data situation in district of CD-ROM drive because the reference position of some section repeats, the work that influence is play.Can have problems when just CD-ROM drive reads, correct data can't be offered personal computer or other computer equipment at CD-ROM drive place.Therefore, must utilize the pointer in section in-list district in the discs, judge whether the discs that CD-ROM drive reads is the multi session music CD of a special format.If the discs that is read is the music CD sheet of special format, just further the section that repeats is got rid of, and stored correct data field to the memory buffer of CD-ROM drive, offer personal computer or other computer equipment at CD-ROM drive place.Like this, no matter whether the discs that is read is that the music CD sheet of a special format all can be play work normally.
In addition, the present invention proposes a kind of Storage Media, and in order to store a computer program, described computer program is in order to be loaded in the computer system and to make described computer system carry out foregoing optical disk reading access method step.
Again moreover, the present invention proposes a kind of disc accessing, has the optical disc data of multi session in order to read one, wherein each section has a pointer, this pointer indicates the reference position of next section on CD, and this reading device comprises pointer reader, form determinant and section reader.
The pointer reader is in order to read the pointer of each section.The form determinant judges in order to the foundation pointer whether the reference position of each section has repetition.The section reader is read in order to the stored data of section that reference position do not had repeat, and can be stored in the memory buffer of CD-ROM drive.
When the discs that is read was the multi session music CD of special format, the form determinant also can be with the cancellation of decoding audit function, i.e. the decoding audit function of c2point of CD-ROM drive.Cancel this effect of deciphering audit function and effect as previously mentioned, help carrying out broadcast work.
The form determinant also comprises the first pointer reader, the second pointer reader, the 3rd pointer reader, reference position comparer and special format determinant.
The first pointer reader is in order to read first pointer at the B0h place, directory area that is arranged in first section in the multi session music CD, to obtain the second section start position data.The second pointer reader reads second pointer of second section in the multi session music CD in order to according to the second section start position data, to obtain the 3rd section start position data.The 3rd pointer reader reads the 3rd pointer of the 3rd section in the multi session music CD in order to according to the 3rd section start position data, to obtain the 4th section start position data.Similarly, second pointer, the 3rd pointer are the pointers that lays respectively at B0h place in the directory area of second section, the 3rd section, are used to refer to the reference position to next section.
The reference position comparer is in order to compare the 3rd section start position data and the 4th section start position data.Reference position comparer 306 is deleted the 3rd section and the 4th section in order to when the 3rd section start position data is identical with the 4th section start position data.
The special format determinant judges that in order to when the 3rd section start position data is identical with the 4th section start position data the section of multi session music CD repeats, and is the multi session music CD of special format.
In addition, the present invention proposes a kind of CD-ROM drive, and it has a memory buffer, and this CD-ROM drive can have the optical disc data of multi session in order to read one, and wherein each section has a pointer, and this pointer indicates the reference position of next section on CD.This CD-ROM drive at first reads the pointer of each section, judges according to pointer whether the reference position of each section has repetition again.At last, reference position there are not the stored data of section of repetition deposit in this memory buffer.
CD-ROM drive can be stored in the section that does not have in the multi session music CD to repeat in the memory buffer of CD-ROM drive.After just getting rid of all repetition sections, CD-ROM drive can not have reference position the data field of the section of repetition to read, for example be stored in the memory buffer of CD-ROM drive, read the follow-up play work of finishing with personal computer or other computer equipment that offers the CD-ROM drive place.When CD-ROM drive judges that the discs read is the music CD of a multi session and the section start bit special format that is equipped with repetition, can be with the c2point decoding audit function cancellation of CD-ROM drive, in order to follow-up music dvd playback work.
Judging the multi session music CD during multi session music CD of special format whether for this reason, CD-ROM drive also can read first pointer of first section in the multi session music CD, to obtain the second section start position data.According to the second section start position data, read second pointer of second section in the multi session music CD, to obtain the 3rd section start position data.According to the 3rd section start position data, read the 3rd pointer of the 3rd section in the multi session music CD, to obtain the 4th section start position data.Compare the 3rd section start position data and the 4th section start position data, when the 3rd section start position data is identical with the 4th section start position data, judge that section repeats, i.e. this multi session music CD multi session music CD that is special format.Wherein, first pointer, second pointer and the 3rd pointer all are the pointers that are arranged in B0h place, section directory area, are used to refer to the reference position to next section.
For further specifying described purpose of the present invention, design feature and effect, the present invention is described in detail below with reference to accompanying drawing.
(4) description of drawings
Fig. 1 is the flowchart that shows disclosed method.
Fig. 2 is the synoptic diagram that shows disclosed Storage Media.
Fig. 3 A is the functional block diagram of CD-ROM drive of the present invention.
Fig. 3 B shows simplification functional block diagram of the present invention.
Fig. 4 is the thin portion functional block diagram that shows CD determinant in the disclosed device.
Fig. 5 is the synoptic diagram that shows general music CD sheet track among the disclosed embodiment.
Fig. 6 is the synoptic diagram that shows general multi session discs directory area among the disclosed embodiment.
Fig. 7 is the synoptic diagram that shows discs directory area, special multiple district among the disclosed embodiment.(Fig. 7 comprises Fig. 7 a and Fig. 7 b)
(5) embodiment
Please refer to Fig. 1, Fig. 1 is the flowchart that shows disclosed method.In one embodiment, the method that a kind of CD reads, it is applicable in the CD-ROM drive that to read the multi session music CD, the multi session music CD has a plurality of sections.
At first, read first pointer of first section in the multi session music CD, to obtain the second section start position data (step S10).First pointer is the pointer that is arranged in the B0h place, directory area of first section, and this pointer is used to refer to the reference position to next section, the i.e. reference position of second section.
Then,, read one second pointer of second section in the multi session music CD, to obtain the 3rd section start position data (step S12) according to the second section start position data.Then,, read the 3rd pointer of the 3rd section in the multi session music CD, to obtain the 4th section start position data (step S14) according to the 3rd section start position data.Similarly, second pointer, the 3rd pointer are the pointers that lays respectively at B0h place in the directory area of second section, the 3rd section, are used to refer to the reference position to next section, i.e. the reference position of the 3rd section and the 4th section.
At last, compare the 3rd section start position data and the 4th section start position data (step S16), when the 3rd section start position data is identical with the 4th section start position data, then judge the multi session music CD that this multi session music CD is a special format.
At last, there are not the data of the section of repetition to read reference position in the multi session music CD, for example with data storing (step S20) in the memory buffer of CD-ROM drive.
After the section that just start bit is equipped with repetition is got rid of, again reference position there is not the data field of the section that repeats to be stored in the memory buffer of CD-ROM drive, for the personal computer at CD-ROM drive place or reading of other computer equipment.
Still see also Fig. 1, get back to step S16, when the section of judging this CD does not have the reference position of repetition, then can carry out follow-up work, as the reading of data district etc.In addition, when inspecting discs when being the CD of multi session form and some section reference position with repetition, also can be with the cancellation of CD-ROM drive c2point decoding audit function, in order to the work of follow-up play.
Please refer to Fig. 2, Fig. 2 is the synoptic diagram that shows disclosed Storage Media.The present invention proposes a kind of Storage Media 20, and in order to store a computer program 22, computer program 22 is in order to be loaded in the computer system and to make described computer system carry out the method step that foregoing CD reads.Computer program 22 mainly comprise the pointer that reads to the small part section programmed logic 220, judge according to pointer whether the reference position of the section read has the programmed logic 222 of repetition and the programmed logic 224 that not have the stored data of section of repetition to read reference position.
Fig. 3 A is the functional block diagram of CD-ROM drive of the present invention.Optical read head 11 is obtained reflected signal from CD 10, signal via radio frequency IC 12 amplify with handle after, focus error signal (FE) and tracking error signal (TE) and other related data and signal are sent into digital signal processor (DSP) 13A and microprocessor (Micro Processor) 13B.Microprocessor 13B with the data storing of reading in memory buffer.
In addition, microprocessor 13B is also according to focus error signal (FE) and tracking error signal (TE) output servo drive signal, send focus servo 14 respectively to, follow rail and rail searching servo 15 and Spindle Motor servo 16, to control each controlled driven unit (focus actuator 17, follow rail actuator 18, transportation (Sled) motor 19 and Spindle Motor 20), guarantee data read or write the correctness of record.
Please refer to Fig. 3 B, Fig. 3 B is the functional block diagram that shows disclosed device.In one embodiment, a kind of disc accessing is applicable in the CD-ROM drive, and in order to read the multi session music CD, the multi session music CD has a plurality of sections, comprises pointer reader 30, form determinant 32 and section reader 34.
Pointer reader 30 (for example optical read head 11) is in order to read on the CD pointer to the small part section.Form determinant 32 (for example microprocessor 13B) judges in order to the foundation pointer whether the reference position of the section that is read has repetition.Section reader 34 is read in order to the stored data of section that reference position do not had repeat, and is stored in the memory buffer of CD-ROM drive.When several sections of the discs that is read have the reference position of repetition, when being the multi session music CD of special format, form determinant 32 also can be with the cancellation of decoding audit function, i.e. the decoding audit function of c2point of CD-ROM drive.Cancel this effect of deciphering audit function and effect as previously mentioned, help carrying out broadcast work.
Please refer to Fig. 4, Fig. 4 is the thin portion functional block diagram that shows CD determinant in the disclosed device.As shown in the figure, form determinant 32 also comprises the first pointer reader 300, the second pointer reader 302, the 3rd pointer reader 304, reference position comparer 306 and special format determinant 308.
The first pointer reader 300 is in order to read first pointer at the B0h place, directory area that is arranged in first section in the multi session music CD, to obtain the second section start position data.The second pointer reader 302 reads second pointer of second section in the multi session music CD in order to according to the second section start position data, to obtain the 3rd section start position data.The 3rd pointer reader 304 reads the 3rd pointer of the 3rd section in the multi session music CD in order to according to the 3rd section start position data, to obtain the 4th section start position data.Similarly, second pointer, the 3rd pointer are the pointers that lays respectively at B0h place in the directory area of second section, the 3rd section, are used to refer to the reference position to next section.
Reference position comparer 306 is in order to compare the 3rd section start position data and the 4th section start position data.Reference position comparer 306 is deleted the 3rd section and the 4th section in order to when the 3rd section start position data is identical with the 4th section start position data.
Special format determinant 308 judges that in order to when the 3rd section start position data is identical with the 4th section start position data the multi session music CD is the multi session music CD of special format.
Please refer to Fig. 5, Fig. 5 is the synoptic diagram that shows general music CD sheet track among the disclosed embodiment.As shown in the figure, the discs of a single section can be read by general CD-ROM drive, and wherein the 4th behavior pointer (Point) has 17 tracks by 1 to 17 representative.With disclosed method also applicable to general music CD sheet, directory area in the general music CD is stored in the memory buffer of CD-ROM drive, just can provides the personal computer at CD-ROM drive place or other computer equipment can carry out the work that follow-up data reads.
Please refer to Fig. 6, Fig. 6 is the synoptic diagram that shows general multi session discs directory area among the disclosed embodiment.As shown in the figure, the directory area of general multi session discs, section number (Sess.) expression of left has five sections, please see the 4th line pointer (Point), each section all comprises a particular pointer, is positioned at the B0h place, in order to point to the reference position of next section.As the pointer B0h place of first section, position pointed is 05h 06h 01h, and then the reference position of second section is 05h 06h01h.The pointer B0h place of second section again, position pointed is 09h 0Ch 05h, then the reference position of the 3rd section is 09h 0Ch 05h.By that analogy, the pointer B0h place of each section, position pointed is the reference position of next section.
Disclosed method is applicable to general multi session discs.At first, read first pointer of first section in the multi session music CD, to obtain the second section start position data, first pointer is the pointer that is arranged in the B0h place, directory area of first section, i.e. 05h 06h 01h.This pointer is used to refer to the reference position to next section, the i.e. reference position of second section.
Then, according to the second section start position data, read one second pointer at the second section B 0h place in the multi session music CD, to obtain the 3rd section start position data, i.e. 09h 0Ch 05h.Then,, read the 3rd pointer of the 3rd section in the multi session music CD, to obtain the 4th section start position data, i.e. 0Dh 12h 0Dh according to the 3rd section start position data.
At last, compare the 3rd section start position data and the 4th section start position data, because the 3rd section start position data and the 4th section start position data are inequality, therefore continue to read follow-up pointer, and obtain the start position data of follow-up section, up to read finish and judge finish till.This multi session music CD of decidable is not the multi session music CD of a special format.At last, directory area in the multi session music CD is stored in the memory buffer of CD-ROM drive, can carries out the work that follow-up data reads in order to personal computer or other computer equipment at CD-ROM drive place.
Please refer to Fig. 7, Fig. 7 comprises Fig. 7 a and Fig. 7 b, and Fig. 7 is the synoptic diagram that shows discs directory area, special multiple district among the disclosed embodiment.For example, suppose that a CD-ROM drive forms with the read method manufacturing of foregoing special multi session music CD, then can be in order to read the multi session music CD, the multi session music CD has the music CD sheet of a plurality of sections.When this special multiple district discs was put into the CD-ROM drive that present embodiment discloses, this CD-ROM drive can be carried out following work.
Read first pointer of first section (Sess.=01) directory area in the multi session music CD, i.e. pointer (Point) B0h place is to obtain the second section start position data 37h 19h 32h.
According to the second section start position data, read second pointer of second section (Sess.=02) directory area in the multi session music CD, i.e. pointer (Point) B0h place is to obtain the 3rd section start position data 39h 05h 32h.According to the 3rd section start position data, read the 3rd pointer of the 3rd section (Sess.=03) in the multi session music CD, i.e. pointer (Point) B0h place is to obtain the 4th section start position data 39h 05h 32h.
Compare the 3rd section start position data and the 4th section start position data, because when the 3rd section start position data is identical with the 4th section start position data, be 39h 05h 32h, therefore its section for repeating deletes the 3rd section (Sess.=03) and the 4th section (Sess.=04) as can be known.
CD-ROM drive can repeat the aforementioned function that reads section start position data, judgement and deletion, up to all sections of multi session music CD all read finish till, promptly read seven sections at present embodiment, and all repeated sections all deleted.
Then, CD-ROM drive can be stored in the directory area of first section in the memory buffer of CD-ROM drive, as shown in the figure, only remaining normal section directory area, personal computer or other computer equipment that can offer the CD-ROM drive place carry out follow-up play work.
When CD-ROM drive judges that the discs that is read is the discs of a special format, when promptly the 3rd section start position data is identical with the 4th section start position data, can be with the c2point decoding audit function cancellation of CD-ROM drive, in order to subsequent optical disc broadcast work.
Generally speaking, the present invention sets up a kind of read method of special multi session music CD, can be in order to read the multi session music CD of special format.Method proposed by the invention can be realized by CD-ROM drive, increases user's ease of use, solves the insurmountable problem of present CD-ROM drive simultaneously, reaches the purpose that the present invention desires to reach.
Though the present invention describes with reference to current specific embodiment, but those of ordinary skill in the art will be appreciated that, above embodiment is used for illustrating the present invention, under the situation that does not break away from spirit of the present invention, also can make the variation and the modification of various equivalences, therefore, as long as variation, the modification to described embodiment all will drop in the scope of claims of the present invention in connotation scope of the present invention.