Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of control method for playing back of CD, is intended to solve the song that the DVD video disc player of existence selected last time, the problem that can not remember next time.
The embodiment of the invention is achieved in that a kind of control method for playing back of optical file, and described method comprises the steps:
The identification information of stored CD, and the file identification information from described CD, selected of user, described CD is the ISO format disc;
When playing CD, judge whether current optical disc is the ISO format disc, is the identification information that then reads CD to be played, otherwise finish;
Whether the identification information of judging CD to be played is consistent with the identification information of the CD of storage, is the file identification information of then loading storage, reads and play the pairing file of file identification information of described storage from CD to be played, otherwise finishes.
Another purpose of the embodiment of the invention is to provide a kind of broadcast control device of optical file, and described device comprises:
The identification information storage module is used for the identification information of stored CD, and the file identification information selected from described CD of user, and described CD is the ISO format disc;
Optical disc identified information reading module is used for judging whether current optical disc is the ISO format disc when playing CD, is the identification information that then reads CD to be played;
Optical disc identified signal judgement module, whether the identification information that is used for judging CD to be played is consistent with the identification information of the CD that described identification information storage module is stored; And
The file transmit control module, when the identification information of the CD that the identification information that is used for judging CD to be played when optical disc identified signal judgement module and described identification information storage module are stored is consistent, load the file identification information of storing in the described identification information storage module, from CD to be played, read and play the pairing file of file identification information of described storage.
Another purpose of the embodiment of the invention is to provide a kind of playing audio/video, and described equipment comprises a file broadcast control device, and described device comprises:
The identification information storage module is used for the identification information of stored CD, and the file identification information selected from described CD of user, and described CD is the ISO format disc;
Optical disc identified information reading module is used for judging whether current optical disc is the ISO format disc when playing CD, is the identification information that then reads CD to be played;
Optical disc identified signal judgement module, whether the identification information that is used for judging CD to be played is consistent with the identification information of the CD that described identification information storage module is stored; And
The file transmit control module, when the identification information of the CD that the identification information that is used for judging CD to be played when optical disc identified signal judgement module and described identification information storage module are stored is consistent, load the file identification information of storing in the described identification information storage module, from CD to be played, read and play the pairing file of file identification information of described storage.
In embodiments of the present invention, preserve the identification information of CD and the file identification information that the user selects from CD, form virtual CD, when inserting dvd playback next time, automatically from storer, load and the identification information corresponding file identification information that inserts CD, play corresponding file, can not select the file broadcast again so that the user does not need to travel through once more CD.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, preserve the identification information of CD and the file identification information that the user selects from CD, form virtual CD, when inserting dvd playback next time, automatically from storer, load and the identification information corresponding file identification information that inserts CD, play corresponding file, can not select the file broadcast again so that the user does not need to travel through once more CD.
The realization flow that the optical file that Fig. 1 shows the embodiment of the invention to be provided is play, details are as follows:
In step S101, read the data in the current optical disc.
In step S102, judge whether the form of current optical disc meets the requirements, judge in embodiments of the present invention whether the form of current optical disc is the ISO form, be execution in step S103 then, otherwise finish.
In step S103, judge whether the identification information of current optical disc is consistent with the identification information of storage, unanimity and gauge tap be for opening, execution in step S104 then, otherwise finish.
In embodiments of the present invention, the identification information of CD can be the label or the sequence number of CD, is used for CD of unique identification.
In step S104, switch to list state, show the identification information corresponding file identification information of storage and current optical disc, non-file does not show.
In embodiments of the present invention, file identification information can be document number, file name etc., is used for file of unique identification.
In step S105, automatically load the file identification information of storage, read and play in the current optical disc file identification information corresponding file with storage.
Fig. 2 shows the realization flow of the storage file identification information that the embodiment of the invention provides, and its detailed step is as follows:
In step S201, read the data in the current optical disc.
In step S202, judge whether current optical disc is the ISO form, be execution in step S203 then, otherwise finish.
In step S203, read the identification information of current optical disc, switch to list state by " programming " key, show the file identification information of the All Files in the whole CD, non-file does not show.
In step S204, judge whether the identification information of current optical disc is consistent with the optical disc identified information of storage, be execution in step S205 then, otherwise execution in step S206.
In step S205, show that current optical disc programmes, the file identification information that can add alternative document again in the file identification information of having stored by the control button also can allow or forbids repeating adding identical file identification information.
As a preferred embodiment of the present invention, read the file identification information number (FileCount) of having programmed in the general act identification information tree address space from storer, if the file identification information of preserving in storer adds up to FileCountN, the position of adding the filesselected identification information so on this basis once more is to begin to add from FileCountN+1.
In step S206, the total global variable of the file identification information of storer is changed to 0.
In step S207, preserve the identification information of current optical disc.
In step S208, the file identification information that selection will be added.
In embodiments of the present invention, when adding the optical file identification information, interpolation is arranged in proper order sequentially, as File1, File2, File3 ..., FileN.
In step S209, judge button operation to the filesselected identification information, if " bookmark " key execution in step S210 then, if " programming " key, if execution in step S211 then is other button operation execution in step S212 then.
In step S210, add the file identification information of choosing to storer.
In step S211, withdraw from this document identification information and add state.
In step S212, enter other button and handle the function operation.
In embodiments of the present invention, the storage organization structure of file is as follows, opens up one section in the rear end of the storer (eeprom) of DVD video disc player system and preserves file identification information memory paragraph for information about.Preceding 32 bytes of this memory paragraph are preserved the identification information of ISO9660 CD, then two general act identification information numbers that byte is preserved; Subsequent address is that 3 addresses are united and preserved a file identification information (these 3 byte addresses are called for short file addresses), and file address the 1st byte is preserved listed files number, and the 2nd, 3 bytes are preserved reference number of a document, and high byte is preceding, low byte after.
As a preferred embodiment of the present invention, Fig. 3 shows the realization flow of the deleted file identification information that the embodiment of the invention provides, and its concrete steps are as follows:
In step S301, enter deleted file identification information state by " programming key ".
In step S302, judge the type of current operation push-button, if " bookmark key " execution in step S303 then, if " programming key " execution in step S304 then.
In step S303, the file identification information that the deletion user chooses.
In embodiments of the present invention, in order to keep original putting in order, with the file identification information deletion of choosing, file identification information thereafter will cover forward successively, keeps their order constant during the deleted file identification information.For example, N file identification information as above-mentioned interpolation, delete one of them file identification information FileN-M, the order of preceding N-M-1 file identification information so is constant, be File1, File2, File3 ..., FileN-M-1, FileN-M+1 covers FileN-M, and FileN-M+2 covers FileN-M+1, covers successively.
In step S304, withdraw from operation by " programming key ".
In embodiments of the present invention, behind the deleted file identification information, can control screen menu type by button and regulate (On-Screen Display, the identification information during OSD) removing is stored in.
Fig. 4 shows the optical file playing device structure that the embodiment of the invention provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.This device is the unit of the software unit, hardware cell or the soft or hard combination that are built in playing audio/videos such as the various sound equipments that can play optical file, DVD video disc player.
The file identification information that the identification information of identification information storage module 11 stored CDs and user select from CD; When playing CD, optical disc identified information reading module 12 reads the identification information of CD to be played; Whether the identification information of the CD of storage is consistent in the identification information that optical disc identified signal judgement module 13 is judged CD to be played and the above-mentioned identification information storage module 11; When the identification information of the CD of storing in identification information that optical disc identified signal judgement module 13 is judged CD to be played and the identification information storage module 11 is consistent, file transmit control module 14 loads the file identification information of storage in the above-mentioned identification information storage module 11, reads and play the pairing file of file identification information of above-mentioned storage from CD to be played.Wherein, file identification information update module 111 is upgraded the file identification information of storage in the identification information storage module 11.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.