CN202084295U - Cd player - Google Patents
Cd player Download PDFInfo
- Publication number
- CN202084295U CN202084295U CN2011201032938U CN201120103293U CN202084295U CN 202084295 U CN202084295 U CN 202084295U CN 2011201032938 U CN2011201032938 U CN 2011201032938U CN 201120103293 U CN201120103293 U CN 201120103293U CN 202084295 U CN202084295 U CN 202084295U
- Authority
- CN
- China
- Prior art keywords
- buffer memory
- data
- shaven head
- buffer
- writing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The utility model relates to the field of audio playing and discloses a CD player. The CD player comprises an optical head, a servo chip, a buffer memory, a buffer memory reading module and a sound card. The optical head is used for reading data of a CD. The servo chip is used for controlling the optical head under the control of a processing module. A processor comprises a control module and a comparator. The control module is connected with the servo chip, a buffer memory writing module and a buffer memory. The comparator is connected with the control module. The buffer memory writing module is connected with the comparator for writing the data read by the optical head into the buffer memory if the comparator determines that the data read by the optical head are totally the same with final data with predetermined bytes. The buffer memory is used for storing data. The buffer memory reading module is used for reading the data in the buffer memory. The sound card is connected with the buffer memory reading module for converting the data read by the buffer memory reading module into audio signals and outputting the audio signals. The CD player of the utility model ensures that data written in the buffer memory are connected accurately when the buffer memory is written at intervals.
Description
Technical field
The utility model relates to field of audio play, relates in particular to a kind of CD Player.
Background technology
The CD music is because the music effect of its high-quality extensively is subjected to audiophile's welcome.At present the mode of play CD laser disc mainly contains: the mode that adopts the CD-ROM of desktop computer to play, and the dual mode by special CD Player broadcast.
Usually in desktop computer and bigger CD Player, because the internal memory of desktop computer and bigger CD Player itself all can have up to a hundred million, so in desktop computer during the play CD laser disc, as long as make the bare headed signal that reads continuously on the CD laser disc earlier, reading is to adopt direct memory (DirectMemory Access, abbreviation DMA) mode is cached to the data of whole first song in the internal memory continuously, from internal memory, read the voice data in the internal memory then in proper order, export the data that read to sound card and can realize voice playing.
Yet along with the development of technology, portable music player becomes the music player of a new generation because the advantage of carrying easily more and more is subjected to people's welcome.
Fig. 1 is the electric composition connection diagram of portable player of the prior art.Referring to shown in Figure 1, existing portable player mainly is made up of shaven head 101, servo ic 102, main control chip 103, buffer memory 104, sound card 105.
Shaven head 101 reads the data of laser disc under the control of servo ic 102, data are passed to system control chip by the digital audio channel between servo ic 102 and the system control chip, system control chip carries out information interaction by control channel and servo ic 102, control servo ic 102, system control chip is connected with buffer memory 104, the write and read of control buffer memory 104.
Yet in music wherein,, generally all have only several megabyte, and the CD song of first a few minutes all can there be tens megabyte usually because its storer is all smaller.So can't adopt in portable music player and directly will put in order first song and read and write internal memory, order reads the mode that song in the internal memory realizes playback of songs then.
In addition, because portable music player generally provides the broadcasting speed adjustable function, the user can be by regulating the broadcasting speed of voice playing, and the general scope of adjusting is 1% to 4 times of normal playback speed.Because broadcasting speed is controlled by the user, the speed that therefore reads the voice data in the buffer memory 104 can be different with the speed of the shaven head 101 voice data buffer memorys 104 that read being advanced internal memory.Therefore, in the prior art, portable music player buffer memory 104 voice datas generally adopt intermittent mode to carry out: write data is advanced buffer memory 104 and is write soon to suspend when full up to buffer memory 104 and write buffer memory 104, by the time the data of buffer memory 104 are played a part after the size of valid data less than setting, then then write the position of buffer memory 104 last time and continue voice data is write buffer memory 104 in buffer memory 104.
And in existing portable music player in order to make the control of responding system in time of CD laser disc, the CD laser disc is in rotation status always in the process of portable music player work, signal on this moment bare headed 101 is in variable condition always, and the digital audio-frequency data that the laser disc servo ic 102 that causes thus comes out is changing always.
And because the clothes chip exchanges digital audio-frequency data by bit clock, bit data, three signals of channel clock with DMA, mode and broadcasting control system.And the action that tracks of Play System control servo ic 102 is mainly as follows: the positional information that is obtained current track by master control system from the servocontrol passage, the target location that need arrive with us compares, shaven head 101 is jumped forward or backward, progressively approach the target location, the control channel by servo ic 102 realizes with the sector method that tracks.Owing to do not have locating information in the digital audio-frequency data, be difficult to digital audio-frequency data is accurately located so systems control division divides with the sector method that tracks.
Therefore based on above reason, after writing the buffering time-out, need to continue then when buffer memory 104 relayings are continued into buffer memory 104, the sector of the using prior art technology that tracks, reading is continued in the position that is difficult to make bare headed 101CD laser disc accurately get back to last reading, the buffer memory of writing at last when having the buffer memory 104 continue to write and suspending 104 can not accurately continuous problem: after writing buffering and suspending, shaven head 101 can not be accurately continuous in position on the laser disc and the position of time-out eve on laser disc when continuing to read the laser disc data, the voice data that causes writing buffer memory 104 can not conform to real data on the laser disc at the tie point place, cause playback of songs the sound saltus step to occur, tie point lags behind, sound appears in playing process to be repeated, or the problem put upside down of left and right sides passage, have a strong impact on user's use experience
In addition, for having the player of rubbing the dish function with the hands, when Play System frequently carries out the operation of forward play and reverse-play, forward and the frequent degree of oppositely writing buffer memory 104 also strengthen, it is many that the tie point of data becomes, and the chance that appearance jumping sound and repetition or left and right sides passage are put upside down is also more, and above-mentioned data connect
NoProblem will be more outstanding to the destruction of music accurately.
The utility model content
The utility model first purpose is to provide a kind of CD Player, adopts this player to guarantee to write the accurate connection of data in buffer when intermittently writing buffer memory.
The CD Player that the utility model embodiment provides comprises:
Shaven head is used to read the data of CD laser disc;
Servo ic is used under the control of processing module the described shaven head of control, and comprising tracks described shaven head navigates to when writing buffer memory at last shaven head before described laser disc sector position, and receives the data that described shaven head reads from described CD laser disc;
Described processor comprises:
Control module is connected with described servo ic, buffer memory writing module, buffer memory, is used for:
Judge whether current buffer memory is write and completely arrive predetermined extent, if control buffer memory writing module suspends and writes buffer memory;
Judge whether the valid data in the buffer memory are read predetermined extent, if trigger the described shaven head of described servo ic and track and navigate to when writing buffer memory at last shaven head before described laser disc sector position;
Comparer, be connected with control module, be used for tracking when navigating to that shaven head is before described laser disc sector position when writing buffer memory at last when shaven head, one by one the data of writing at last in the sub-buffer area of data and the current place of buffer memory write pointer that reads of being scheduled to a byte are compared, identical up to the data that described shaven head reads with the data of a predetermined byte of writing at last
The buffer memory writing module is connected with described comparer, is used for judging when described comparer: the data that described shaven head reads are identical with the data of a predetermined byte of writing at last, and the data that described shaven head is read write described buffer memory;
Buffer memory is used to store data;
The cache read module is used to read the data in the described buffer memory;
Sound card is connected with described cache read module, is used for the data-switching that described cache read module reads is become sound signal, exports described sound signal.
Therefore, use the technical solution of the utility model, owing to be cached to when continuing to write buffer memory for need write by time-out at every turn, shaven head is tracked navigate to the position before several sectors of suspending the bare headed place sector position of determining constantly, then in bare headed reading of data process, the several number that writes at last in the data that shaven head is read and the buffer memory is compared according to (promptly in the data of suspending several bytes that constantly write at last), have only comparative result to be: to think just when identical that the position at current bare headed place is to suspend the sector position at bare headed actual place constantly, at comparative result be: after identical, just the data that shaven head is continued to read write buffer memory, guaranteed by time-out write be cached to continue to write buffer memory constantly shaven head accurately navigated to and suspended position constantly, guaranteed the accurate continuity of the data in the buffer memory, avoided owing to writing that data inconsistent that buffer memory suspends data and actual CD laser disc in the buffer memory cause causes played songs jumping sound and discontinuous problem helps improving tonequality.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present utility model, constitutes the application's a part, does not constitute to improper qualification of the present utility model, in the accompanying drawings:
Fig. 1 is the synoptic diagram of the structural system block diagram of a kind of CD Play System of the prior art;
The method flow synoptic diagram of buffer memory CD data during a kind of forward play CD signal that Fig. 2 provides for the utility model embodiment 1;
The method flow synoptic diagram of buffer memory CD data during a kind of forward play CD signal that Fig. 3 provides for the utility model embodiment 2;
Read the method flow synoptic diagram of buffer memory during a kind of forward play CD signal that Fig. 4 provides for the utility model embodiment 3;
The structural representation of a kind of CD Player that Fig. 5 provides for the utility model embodiment 4.
Embodiment
Describe the utility model in detail below in conjunction with accompanying drawing and specific embodiment, be used for explaining the utility model in this illustrative examples of the present utility model and explanation, but not as to qualification of the present utility model.
Embodiment 1:
The method flow synoptic diagram of buffer memory CD data during a kind of forward play CD signal that Fig. 2 provides for present embodiment.Referring to shown in Figure 2, this method mainly comprises step down:
Step 201: if song has changed or data cached first, then redirect execution in step 203; Otherwise execution in step 202.
When the selected song of user or player according to predetermined playback of songs mode after the selected song that needs to play, shaven head can be under the control of servo ic, being tracked by the sector according to the prior art shaven head is decided to be the beginning of song, and execution in step 202 begins to read the data on the CD laser disc.
Step 202: the data that read are write buffer memory, execution in step 203 according to reading order.
With the data that read current moment, the data that shaven head reads are write buffer memory according to reading order according to the mode of DAM.
Usually, CD laser disc normal speed can read 75 sectors following p.s., and the transfer rate of data is (75 sectors/second X2352 byte/sector)=176400 byte per seconds.
Suppose current Play System total in save as 8 megabyte, because system program partly need take the internal memory of a part, use the scheme of present embodiment, we can but be not limited to reserve the buffer memory that the buffer memory (30*176400 byte) of the CD audio frequency size that can deposit about 30 seconds delays as the storage DAB.
Step 203: it is full whether the judgement current cache is write soon, if then execution in step 204; Otherwise return step 202.
Judge in writing the process of buffer memory whether current cache is write fullly soon, if write fullly soon, then suspends and writes buffer memory, otherwise continue to return step 202, and the data that continue shaven head is read write buffer memory, up to current buffer memory write full till.
Judging specifically in the present embodiment whether current cache is write soon completely can be according to actual definition, such as being predefined for when residue determines that the space of a byte remains, be current write data cached when reaching much spaces, how long the perhaps current time of writing buffer memory continuously when reaching, and judges that current cache writes full soon.
Step 204: determine the sector auxiliary information of current shaven head at the CD laser disc.
Write the full moment in definite current cache, system determines shaven head current position at the CD laser disc (sector auxiliary information).Can the current sector auxiliary information at the CD laser disc of shaven head be passed to control chip by control channel such as servo ic, control chip can be stored this sector auxiliary information in buffer memory.
The sector auxiliary information that this step is determined is actual in write the sector auxiliary information of the CD laser disc at data in buffer place at last when time-out is write buffer memory.And because the time delay of signal, and in the Play System course of work, laser disc is in rotation status constantly, so the time sector auxiliary information and the certain error of physical presence determined.
Step 205: whether the valid data that detect in the buffer memory are read predetermined extent, if then execution in step 206; Otherwise returning this step waits for.
After time-out was write buffer memory, whether the valid data that detect in the current cache were read predetermined extent, are read predetermined extent when being judged to be, execution in step 206; When being judged to be when also not being read predetermined extent, wait for till being read predetermined extent.
Step 206: shaven head is navigated to several sectors before the determined sector of step 204, execution in step 207 by tracking.
The sector auxiliary information definite according to step 204, such as the sector of determining in the step 204 is the 50th sector on the laser disc, in this step shaven head is tracked and navigate to (50-A) sector, wherein A is a natural number, the error of discovering the sector auxiliary information of determining in the step 104 according to the utility model people is generally about 1 sector, therefore in this step, this several sector A can but be not limited to selected 1,2 or 3, so both guaranteed accurately to find and write the tie-point that buffer memory suspends, can guarantee efficient again.
Step 207: shaven head reads the data on the CD laser disc, one by one relatively with the data of the predetermined byte write at last in the data that read and the buffer memory, and execution in step 208.
After shaven head is navigated to the position of step 206 by tracking, shaven head reads the data on the CD laser disc, and after reading, one by one with the predetermined byte write at last in the data that read and the buffer memory (such as but do not limit and 4 bytes) data relatively, the processing that continues according to the comparative result in the step 208.
Step 208: judge whether the bare headed data that read are identical with the data that write the predetermined byte in the buffer memory at last, if then return step 202; Otherwise, return step 207.
If in case comparative result is: the data that shaven head reads are identical with the data that write the predetermined byte (being such as but not limited to 4 bytes) in the buffer memory at last, think that then the position at current bare headed place is the position of suspending shaven head place when writing buffer memory, return step 202, buffer memory before beginning then to suspend, the order that the data that shaven head is read read according to shaven head writes in the buffer memory; Otherwise, think that shaven head is current to return step 207 that the continuation shaven head reads comparing data also not to suspending the position that is write data in buffer place CD laser disc constantly at last.
Therefore, use method of the present utility model, owing to be cached to when continuing to write buffer memory for need write by time-out at every turn, shaven head is tracked navigate to the position before several sectors of suspending the bare headed place sector position of determining constantly, then in bare headed reading of data process, the several number that writes at last in the data that shaven head is read and the buffer memory is compared according to (promptly in the data of suspending several bytes that constantly write at last), have only comparative result to be: to think just when identical that the position at current bare headed place is to suspend the sector position at bare headed actual place constantly, at comparative result be: after identical, just the data that shaven head is continued to read write buffer memory, guaranteed by time-out write be cached to continue to write buffer memory constantly shaven head accurately navigated to and suspended position constantly, guaranteed the accurate continuity of the data in the buffer memory, avoided owing to writing that data inconsistent that buffer memory suspends data and actual CD laser disc in the buffer memory cause causes played songs jumping sound and discontinuous problem helps improving tonequality.
Embodiment 2:
The utility model people finds that in carrying out research of the present utility model for the ease of the management of buffer memory, it is trivial whole big buffer memory can be resolved into a plurality of sub-buffer memorys, when carrying out data storage, each sub-buffer area is carried out cache management as writing buffer unit.Be such as but not limited to as follows:
Usually, CD laser disc normal speed can read 75 sectors following p.s., and the transfer rate of data is (75 sectors/second X2352 byte/sector)=176400 byte per seconds.
Suppose our system total in save as 8 megabyte because system program partly need take partial memory, we only reserve the buffer memory that can deposit the CD audio frequency size about 30 seconds and use for DAB as buffer memory.
In the present embodiment, we can but be not limited to the buffer memory of 30 seconds capacity, resolve into 30 sub-buffer areas and manage.The size of setting each sub-buffer area is: the individual byte of 16+ ((75+2) X2352).
Be defined as following structure for each sub-buffer area:
[1: the first address pointer P1 of member points to next buffer area first address of this buffer memory;
2: the first address pointer P2 of member point to the last buffer area first address of this buffer memory;
The member 3: the valid data size is used to identify effective timbre size of data of current storage in the current sub-buffer area;
The member 4: first sevtor address is used to put down in writing the first sevtor address of digital audio-frequency data on the CD dish of book buffer area stored;
The member 5: the voice data storage area, be used to deposit voice data, and the size with this voice data memory block is set at (75+2) X2352 byte in the present embodiment.
Before using, do following initialization starting Play System earlier: the member 3 of 30 buffer memorys (current cache valid data size) clear 0; The member 4 of 30 buffer memorys (the first sevtor address information of current cache) clear 0; Simultaneously, member 1 (pointing to next sub-buffer area first address) is pressed formation mode assignment:
The first address of (next sub-buffer area first address) member=buffer memory 1 of buffer memory 0;
The first address of (next sub-buffer area first address) member=buffer memory 2 of buffer memory 1;
The first address of (next sub-buffer area first address) member=buffer memory 0 of buffer memory 29.
In addition, member 2 (pointing to a last sub-buffer area first address) is also pressed formation mode assignment:
The first address of (a last sub-buffer area first address) member=buffer memory 29 of buffer memory 0;
The first address of (a last sub-buffer area first address) member=buffer memory 0 of buffer memory 1;
The first address of (a last sub-buffer area first address) member=buffer memory 28 of buffer memory 29.
In addition, cache read pointer and buffer memory write pointer are all pointed to buffer memory 0.
Through above processing, 30 sub-buffer areas will form a big buffer memory of circle, and they join end to end by address pointer.
The method flow synoptic diagram of buffer memory CD data during a kind of forward play CD signal that Fig. 3 provides for present embodiment, referring to shown in Figure 3, present embodiment mainly comprises the steps:
Step 301: if song has changed, or data cached first, then execution in step 302; Otherwise execution in step 304.
When the selected song of user or player according to predetermined playback of songs mode after the selected song that needs to play, shaven head can be under the control of servo ic, being tracked by the sector according to the prior art shaven head navigates to the beginning of song, and execution in step 202 begins to read the data on the CD laser disc.
Step 302: the current sector auxiliary information of storage shaven head in current sub-buffer area, execution in step 303 at the CD laser disc.
After step 301, before writing the timbre data, the current position in CD laser disc sector of shaven head is write current sub-buffer area toward the 0th sub-buffer area.If such as the buffer structure that adopts above-mentioned definition, then in member 4, store the current sector auxiliary information on the CD laser disc of shaven head.
Step 303: the data that read are write current sub-buffer area, execution in step 304 according to reading order.
With the data that read current moment, the data that shaven head read according to the mode of DAM are according to reading the sound that order writes current sub-buffer area
FrequentlyThe deposit data district.
Step 304: judge whether the book buffer area is write completely, if then execution in step 305; Otherwise return step 303.
Can determine whether current sub-buffer area is write completely, expires if write, and then execution in step 305 in position definite according to the time of writing buffer memory or the buffer memory write pointer at present embodiment; Otherwise, return step 303, continue to write voice data at the book buffer area.
In the present embodiment, think then that up to writing a full 75*2352 byte book buffer area writes full.
Step 305: upgrade the valid data size of current sub-buffer area, execution in step 306.
Upgrade the member 3 in the book buffer area, current cache valid data size is updated to: 75*2352 byte.
Step 306: determine the address of next son buffer area, execution in step 307.
In current sub-buffer area, read member 1 information, determine address information (first address information) with respect to the next son buffer area of book buffer area.
Step 307: it is full whether the judgement current cache is write soon, and if not, then execution in step 308; Otherwise bar redirect execution in step 309.
Can be by beginning by the sub-buffer memory in current write pointer place, next sub-buffer area first address is read in circulation, computation cycles reads the number of the sub-buffer memory of process, when the sub-buffer memory first address in first address that reads and playing pointer place equates, the number of the sub-buffer memory that reads process if circulate is judged to be buffer memory and has write full less than setting value.
Step 308: the buffer memory write pointer is moved on to the next son buffer area, return step 302.
Also do not write fullly during if judge current cache, carry out this step: the buffer memory write pointer is moved on to the next son buffer area,, proceed to write caching at the next son buffer area with after returning step 302 to the degree of being scheduled to.
Step 309: suspend and write caching, execution in step 310.
Step 310: whether the valid data that detect in the buffer memory are read predetermined extent, if then execution in step 311; Otherwise returning this step waits for.
This step is identical with step 205 among the embodiment 1.
Step 311: again to the shaven head location that tracks, execution in step 312.
In the end write in the sub-buffer area of buffer memory and read member 4, determine the sector position that reads at last to be made as the B sector, then can but be not limited to make shaven head to track to navigate to (B+77-2) sector.
Because the size of every sub-buffer area is for can store 77 sectors of data on the CD laser disc in the present embodiment, therefore after having write the book buffer area, again the location shaven head that tracks is positioned at (B+75) sector with shaven head, can be so that about a sector of sector precontract at the actual place when time-out is write buffer memory, position location that tracks of shaven head.
Step 312: shaven head reads the data on the CD laser disc, one by one relatively with the data of 4 bytes writing at last in the data that read and the buffer memory, and execution in step 313.
Step 313: judge whether the bare headed data that read are identical with the data that write 4 bytes in the buffer memory at last, if then return step 308; Otherwise, return step 312.
Therefore, the beneficial effect of present embodiment in having embodiment 1, also have following beneficial effect:
1, because present embodiment is divided into a plurality of sub-buffer areas with big buffer memory, when the read-write cache data, buffer memory is separately carried out cache management, help improving treatment effeciency, improve the reaction velocity of system.
2, because present embodiment has defined the address information with respect to the next son buffer area of book buffer area in buffer memory separately, so when the user when carrying out forwarding operation, system's basis is somebody's turn to do with respect to the address information of the next son buffer area of book buffer area can carry out sub-buffer area redirect fast, buffer address carries out redirect and do not need one by one, helps accelerating the treatment effeciency of system.
3, since present embodiment in buffer memory separately, defined with respect to the book buffer area on the address information of a sub-buffer area, so when the user when advancing fast reverse operation, system's basis is somebody's turn to do with respect to the address information of a last sub-buffer area of book buffer area can carry out sub-buffer area redirect fast, buffer address carries out redirect and do not need one by one, helps accelerating the treatment effeciency of system.
4, because present embodiment has defined the valid data size information of book buffer area in buffer memory separately, like this when carrying out playback of songs, the cache read pointer can be determined conveniently to read the voice data size that need read according to this information.
Embodiment 3:
Read the method flow synoptic diagram of buffer memory during a kind of forward play CD signal that Fig. 4 provides for present embodiment.
For the buffer memory among the embodiment 2 can but be not limited to carry out data cached reading according to the flow process of present embodiment, this method mainly may further comprise the steps:
Step 401: fetch data from the deposit data district sequential read of the sub-buffer area at the current place of buffer memory read pointer, export the data that read to audio digital to analog converter.
Because current broadcast is a forward play, so,, read the data in the current sub-buffer area according to the mode of first in first out according to the sequencing of storing.
Step 402: the valid data of judging current sub-buffer area are read and finish, if then execution in step 403; Otherwise return step 401.
If current sub-buffer area is read finish, then execution in step 403, to continue reading voice data at the next son buffer area.
Can when being write buffer memory, each sub-buffer area after writing full book buffer area, in the book buffer area, store the valid data size information in current the buffer area in the present embodiment.During the data in reading buffer area separately, can make processor can judge quickly whether the data of book buffer area are run through like this according to the valid data size information of book buffer area.
If the valid data of intact current sub-buffer area have read, then execution in step 403, jump to the next son buffer area; Otherwise continue to read the data in the book buffer area.
Step 403: determine the first address of next buffer memory, the cache read pointer is moved to the first address of this next buffer memory, return step 401.
Owing in each sub-buffer area, store address respectively with respect to the next son buffer area of book buffer area, then in current sub-buffer area, determine the address of next son buffer area, the cache read pointer is moved to the first address of this next buffer memory, return step 401, in the next son buffer area, carry out reading of valid data.
Step 401-403 circulation is carried out the output of reading of buffer memory repeatedly, and outputting audio data is realized music.
Embodiment 4:
The structural representation of a kind of CD Player that Fig. 5 provides for present embodiment.
Show that referring to Fig. 5 this system mainly comprises as follows: shaven head 501, servo ic 502, processor 503, buffer memory writing module 505, cache read module 506, buffer memory 507.
Wherein shaven head 501 is electrically connected with servo ic 502, processor 503 is electrically connected with servo ic 502 comparers, buffer memory writing module 505, cache read module 506, buffer memory 507 respectively, core control part for this player, buffer memory writing module 505 is connected with comparer, buffer memory writing module 505, cache read module 506 are connected with buffer memory 507 respectively, carry out buffer memory 507 respectively and write, read.
Wherein the principle of work of each several part is as follows:
Shaven head 501 is used for reading the data of CD laser disc under the control of servo ic 502;
Servo ic 502, be connected with processor 503, shaven head 501 respectively, servo ic 502 is used for control described bare headed 501 under the control of processing module, being included under the control of processor 503 tracks described bare headed 501 navigates to when writing buffer memory 507 at last shaven head 501 before described laser disc sector position, and receives described bare headed 501 data that read from described CD laser disc.
Described processor 503 comprises: control module, comparer.Wherein control module is connected with servo ic 502, buffer memory writing module 505, buffer memory 507, is used for: judge whether current buffer memory 507 is write and completely arrive predetermined extent, if control buffer memory writing module 505 suspends and writes buffer memory 507; Judge whether the valid data in the buffer memory 507 are read predetermined extent, if trigger described servo ic 502 described bare headed 501 and track and navigate to when writing buffer memory 507 at last shaven head 501 before described laser disc sector position;
Comparer, be connected with control module, be used for tracking when navigating to that shaven head 501 is before described laser disc sector position when writing buffer memory 507 at last when shaven head 501, one by one the data of writing at last in the sub-buffer area 5071 of data and the current place of buffer memory write pointer that reads of being scheduled to a byte are compared, identical up to described bare headed 501 data that read with the data of a predetermined byte of writing at last
Buffer memory writing module 505 is connected with comparer, is used for when the comparer result of determination being: shaven head 501 data that read are identical with the data of a predetermined byte of writing at last, and shaven head 501 data that read are write buffer memory 507;
Buffer memory 507 is used to store data.
Cache read module 506 is used to read the data in the described buffer memory 507;
Sound card is connected with described cache read module 506, is used for the data-switching that described cache read module 506 reads is become sound signal, exports described sound signal.
The detailed cooperation of each several part and principle of work see description among the embodiment 1 in detail, do not give unnecessary details at this.
Therefore, use the technical solution of the utility model, owing to be cached to when continuing to write buffer memory for need write by time-out at every turn, shaven head 501 is tracked navigate to the position before several sectors of suspending the shaven head 501 place sector positions of determining constantly, then in bare headed 501 reading of data processes, the several number that writes at last in shaven head 501 data that read and the buffer memory 507 is compared according to (promptly in the data of suspending several bytes that the moment writes at last), have only comparative result to be: to think just when identical that the position at current bare headed 501 places is to suspend the sector position at shaven head 501 actual places constantly, at comparative result be: after identical, just shaven head 501 data that continue to read are write buffer memory 507, guaranteed by time-out write be cached to continue to write buffer memory constantly shaven head 501 accurately navigated to and suspended position constantly, guaranteed the accurate continuity of the data in the buffer memory 507, avoided owing to writing that data inconsistent that buffer memory suspends data and actual CD laser disc in the buffer memory 507 cause causes played songs jumping sound and discontinuous problem helps improving tonequality.
In addition, in the present embodiment, can will as described among the embodiment 2, buffer memory 507 be divided into the first a plurality of sub-buffer area that connects 5071 compositions, and in each sub-buffer area 5071, store address information with respect to the next son buffer area 5071 of book buffer area 5071, each sub-buffer area 5071 first place can be coupled together like this, the buffer memory write pointer is when writing buffer memory like this, can be after each sub-buffer area 5071 have been write, in book buffer area 5071, determine the address of next son buffer area 5071, jump to next son buffer area 5071 and in next son buffer area 5071, write buffer memory; Carrying out forward play when reading buffer memory in addition, it is data cached that the cache read pointer also can be that sub-one by one buffer area 5071 ground, unit read with sub-buffer area 5071, makes that the read-write of buffer memory and management are easier.
For the ease of the management of buffer memory, whole big buffer memory can be resolved into 30 sub-buffer area 5071 districts, when carrying out data storage, each sub-buffer area 5071 district is carried out cache management as writing buffer unit.Be such as but not limited to as follows:
Usually, CD laser disc normal speed can read 75 sectors following p.s., and the transfer rate of data is (75 sectors/second X2352 byte/sector)=176400 byte per seconds.
Suppose our system total in save as 8 megabyte because system program partly need take partial memory, we only reserve the buffer memory that can deposit the CD audio frequency size about 30 seconds and use for DAB as buffer memory.
In the present embodiment, we can but be not limited to the buffer memory of 30 seconds capacity, resolve into 30 sub-buffer areas 5071 and manage.The size of setting each sub-buffer area 5071 is: the individual byte of 16+ ((75+2) X2352).
Can help saving spatial cache like this, can guarantee that again data in buffer can satisfy actual needs.
Concrete principle of work and beneficial effect can not given unnecessary details at this referring to the description among the embodiment 2.
In addition, in order more to help behind the buffer memory write pointer, shaven head 501 better tracks and navigates to that shaven head 501 can contain the sector auxiliary information of data on described laser disc that writes at first in the data of current storage in the book buffer area 5071 at each sub-buffer area 5071 internal memory when writing buffer memory at last before described laser disc sector position.The place is so as described in example 2 above, control module control servo ic 502 makes shaven head 501 track and navigate to the sector position of (B+77-2) sector as the location that tracks again after suspending write data, if the B sector of laser disc is the first sevtor address of middle data in the word buffer area of writing buffer memory at last, 77 is the space size of sub-buffer area 5071, then can but be not limited to make shaven head 501 to track to navigate to (B+77-2) sector.Make that like this location Calculation that tracks of shaven head 501 is simpler, and efficient is higher.
More than technical scheme that the utility model embodiment is provided be described in detail, used specific case herein principle and the embodiment of the utility model embodiment are set forth, the explanation of above embodiment only is applicable to the principle that helps to understand the utility model embodiment; Simultaneously, for one of ordinary skill in the art, according to the utility model embodiment, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as restriction of the present utility model.
Claims (5)
1. a CD Player is characterized in that, comprising:
Shaven head is used to read the data of CD laser disc;
Servo ic is used under the control of processing module the described shaven head of control, and comprising tracks described shaven head navigates to when writing buffer memory at last shaven head before described laser disc sector position, and receives the data that described shaven head reads from described CD laser disc;
Described processor comprises:
Control module is connected with described servo ic, buffer memory writing module, buffer memory, is used for:
Judge whether current buffer memory is write and completely arrive predetermined extent, if control buffer memory writing module suspends and writes buffer memory;
Judge whether the valid data in the buffer memory are read predetermined extent, if trigger the described shaven head of described servo ic and track and navigate to when writing buffer memory at last shaven head before described laser disc sector position;
Comparer, be connected with control module, be used for tracking when navigating to that shaven head is before described laser disc sector position when writing buffer memory at last when shaven head, one by one the data of writing at last in the sub-buffer area of data and the current place of buffer memory write pointer that reads of being scheduled to a byte are compared, identical up to the data that described shaven head reads with the data of a predetermined byte of writing at last
The buffer memory writing module is connected with described comparer, is used for judging when described comparer: the data that described shaven head reads are identical with the data of a predetermined byte of writing at last, and the data that described shaven head is read write described buffer memory;
Buffer memory is used to store data;
The cache read module is used to read the data in the described buffer memory;
Sound card is connected with described cache read module, is used for the data-switching that described cache read module reads is become sound signal, exports described sound signal.
2. a kind of CD Player according to claim 1 is characterized in that, comprising:
Described buffer memory is made up of at least two sub-buffer areas, stores the address information with respect to the next son buffer area of book buffer area in described each sub-buffer area.
3. a kind of CD Player according to claim 2 is characterized in that, comprising:
Described buffer memory is made up of 30 sub-buffer areas.
4. according to claim 1,2 or 3 described a kind of CD Player, it is characterized in that, comprising:
The size of described each sub-buffer area is set to 77 sector datas can storing on the described laser disc.
5. a kind of CD Player according to claim 2 is characterized in that, comprising:
In described each sub-buffer area, also store the sector auxiliary information of data on described laser disc that writes at first in the data of current storage in the book buffer area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011201032938U CN202084295U (en) | 2010-04-21 | 2011-03-30 | Cd player |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201020172889.9 | 2010-04-21 | ||
CN201020172889 | 2010-04-21 | ||
CN2011201032938U CN202084295U (en) | 2010-04-21 | 2011-03-30 | Cd player |
Publications (1)
Publication Number | Publication Date |
---|---|
CN202084295U true CN202084295U (en) | 2011-12-21 |
Family
ID=45344918
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011201032938U Expired - Fee Related CN202084295U (en) | 2010-04-21 | 2011-03-30 | Cd player |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN202084295U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113486207A (en) * | 2021-07-14 | 2021-10-08 | 深圳大趋智能科技有限公司 | Voice broadcasting method and device based on DAC |
-
2011
- 2011-03-30 CN CN2011201032938U patent/CN202084295U/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113486207A (en) * | 2021-07-14 | 2021-10-08 | 深圳大趋智能科技有限公司 | Voice broadcasting method and device based on DAC |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2840450B2 (en) | On-the-fly division of disk data blocks | |
JP4623390B2 (en) | Playback apparatus, playback method, and playback program | |
CN102819408B (en) | The implementation method of the RAID 0 of dynamic adjustment stripe depth and system | |
CN101017691A (en) | Information processing apparatus, media player and method for controlling a storage device | |
CN105787027A (en) | Audio file playing method and terminal | |
CN102981783A (en) | Cache accelerating method based on Nand Flash | |
KR20090034087A (en) | Method for reproducing media contents using non-volatile storage medium and apparatus thereof | |
JPH06333204A (en) | Magnetic disk device | |
CN101727311B (en) | Branched sequence buffer for reducing instruction cache power consumption | |
CN202084295U (en) | Cd player | |
JP4310821B2 (en) | Information recording apparatus and method | |
CN102208202A (en) | Method for caching compact disc (CD) data during forward playing of compact disc (CD) signals and player | |
CN101833423A (en) | Record and reproducer and record and reproducting method | |
CN102237113B (en) | Method for caching CD (Compact Disc) data during reversely playing CD signals and player | |
US6327641B1 (en) | Method of implementing a geometry per wedge (GPW) based headerless solution in a disk drive formatter and a computer program product incorporating the same | |
JPH08195022A (en) | Disk reproducing device, karaoke system and disk reproducing method | |
CN113220639B (en) | File storage system control device for space application | |
US20030002399A1 (en) | Method and apparatus for constructing a file system in a compact disc player | |
CN101454834B (en) | Contents reproducing device | |
CN202102712U (en) | CD player | |
CN100472638C (en) | Portable CD-MP3 system and file decoding method for operating said system | |
CN1312570C (en) | Method and relative device for hardware array data migration | |
US7680969B1 (en) | Method and system for implementing disk IO command splitting | |
US20090040886A1 (en) | Disk playback apparatus and method | |
CN201994060U (en) | Vehicle-mounted digital versatile disc (DVD) player with virtual drive function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111221 Termination date: 20150330 |
|
EXPY | Termination of patent right or utility model |