CN101751961B - Multimedia playing method and playing device thereof - Google Patents

Multimedia playing method and playing device thereof Download PDF

Info

Publication number
CN101751961B
CN101751961B CN2008101843945A CN200810184394A CN101751961B CN 101751961 B CN101751961 B CN 101751961B CN 2008101843945 A CN2008101843945 A CN 2008101843945A CN 200810184394 A CN200810184394 A CN 200810184394A CN 101751961 B CN101751961 B CN 101751961B
Authority
CN
China
Prior art keywords
audio file
storer
section
capacity
preset time
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
Application number
CN2008101843945A
Other languages
Chinese (zh)
Other versions
CN101751961A (en
Inventor
黄仁宜
黄秋雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LIANYANG SEMICONDUCTOR CO Ltd
Original Assignee
LIANYANG SEMICONDUCTOR CO Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by LIANYANG SEMICONDUCTOR CO Ltd filed Critical LIANYANG SEMICONDUCTOR CO Ltd
Priority to CN2008101843945A priority Critical patent/CN101751961B/en
Publication of CN101751961A publication Critical patent/CN101751961A/en
Application granted granted Critical
Publication of CN101751961B publication Critical patent/CN101751961B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

The invention relates to a multimedia playing method and a playing device thereof. The playing method comprises the following steps: receiving N audio files selected by a user, wherein N is larger than 0; respectively deciding the capacity required by a memory for playing each file of the N audio files for a preset time; checking whether the sum of the capacities required by the memory for the N audio files is larger than the preset value or not; reducing the preset time and returning to the step of respectively deciding the capacity required by the memory for playing each file of the N audiofiles for the preset time when the judgment result is yes; and storing the initial part of the playing preset time of the N audio files into the memory when the judgment result is not.

Description

Multi-medium play method and playing device thereof
Technical field
The present invention relates to a kind of multi-medium play method, and be particularly related to a kind of multi-medium play method and multimedia playing apparatus thereof that can reduce the playout-delay time and memory buffer (shockproof time) be done optimization planning.
Background technology
Portable optic disk (Compact Disc is hereinafter to be referred as CD) walkman or automobile-used CD Player are different with general family expenses CD Player, because portable discman or automobile-used CD Player are in use, environment usually shakes.When vibrations took place, optical read head may cause correctly sense data because of vibrations, caused and play discontinuous situation.Discontinuous for fear of playing, generally shockproof (Shock Protection) mechanism can be divided into dual mode: (1) increases the shockproof intensity of CD Player mechanism.(2) utilize memory buffer, CD Player is put into memory buffer (depend on buffer memory size, for example put into 40 seconds track) to the part of the track that is about to play earlier.Afterwards, when the CD Player playing back music, directly read track by memory buffer, so when taking place to shake so that optical read head can not reading of data the time, CD Player still can from the buffering storer reading of data, so can not produce the broadcast discontinuous phenomenon.
Development along with CD Player, present CD Player also possesses the ability of playing compressed tracks, for example play mp3 file, adaptive prediction formula coding (Adaptive Predictive Encoding, hereinafter to be referred as APE) file or lossless audio compressed encoding (Free Lossless Audio Codec is hereinafter to be referred as FLAC) file.In general, the audio file of MP3 format can reach 1: 10 compressibility approximately, though this compressibility can be lost tonequality, because the capacity of the required storer of file is little, so become main flow very soon.And APE file, FLAC file are distortionless compress technique, so still occupy the ground of a seat on market.The file of compressed tracks is less, for example the MP3 format with transfer rate 125K bit/s, sampling frequency 44100Hz is an example, a track of 5 minutes may have only the size of 4~5M bytes, thereby can deposit several mp3 files in to memory buffer, and shockproof effect can reach hundreds of seconds.
Yet still there are some problems in the player with memory buffer.Playing no compressed tracks with CD Player is example, supposes CD Player at this moment just at first track of play CD, i.e. the part of the buffer memory stores first first track.When user's desire select to be play next, the first first track that CD Player must wipe in the memory buffer earlier to be stored, and this moment CD Player the memory buffer part that originally may store first track, second track and the 3rd track.Therefore, when user's desire is selected to play five notes of traditional Chinese music rail, the part of the first first track, the second first track and the 3rd track that CD Player need wipe in the memory buffer to be stored, put into the part of five notes of traditional Chinese music rail, the 6th track and subtonic rail then, this process can cause the phenomenon of playout-delay.In like manner, also there is the phenomenon of playout-delay in the player with micro hard disk.
In view of this, United States Patent (USP) US6,934, No. 812 announcement memory disc player has a memory disc and a memory cache.When the user chose a played file, file can be divided into an initial part and a remainder.After player read initial part from memory disc, initial part can not play-overed through memory cache.Thus, play-over file and can reduce and be stored to memory cache, read the time of initial part again by memory cache from memory disc.And when playing initial part, player can extract remainder from memory disc and be stored to memory cache, so remainder branch plays through memory cache.Press next button so work as the user, player still must extract initial part again from memory disc, therefore can have the problem of playout-delay.
In addition, United States Patent (USP) US7,042, No. 813 announcement player is when playing a track, and the initial part that can extract a plurality of tracks is stored to memory buffer.Yet the initial part of the track of being stored in the memory buffer just can be deleted after playing, and whether is lower than certain critical value so player needs constantly to detect the part of not playing as yet in the memory buffer.Because the initial portion branch of some track after broadcast is deleted, so can there be the problem of playout-delay.
In addition, U.S. Patent Publication No. discloses the memory disc player US20070156962 number, user's definable one playing list, and each played file is divided into an initial part and a remainder, and the initial part of all playing lists (file size 2%) can be stored in the memory buffer.Because mp3 file now has the compressed bits rate (bit rate) of all sizes such as 128K, 192K, 256K and 320K.Be stored in the memory buffer if only extract 2% of each played file, may be compressed to the storage space of the remainder of file, and influence buffering effect.
Summary of the invention
The invention provides a kind of player method and multimedia playing apparatus of multimedia playing apparatus, can plan the shockproof time (surge time) by this effectively and reduce the playout-delay time.
The present invention proposes a kind of multi-medium play method, is suitable for a multimedia playing apparatus, and this multimedia playing apparatus has storer and K audio file, K>0.This multi-medium play method comprises the following steps.At first, receive N the audio file that the user selects, wherein 0<N≤K.Then, detect the capacity that N audio file play the required storer of Preset Time respectively.Afterwards, judge that whether the capacity summation of N the required storer of audio file is greater than preset value.Then, when the capacity summation of judging N the required storer of audio file during, then reduce Preset Time, and get back to the step of " detecting the capacity that N audio file play required storer in the Preset Time respectively " greater than preset value.When the capacity summation of judging N the required storer of audio file during less than preset value, the initial part of then N audio file being play Preset Time is stored in the storer.
In an embodiment of the present invention, also comprise the following steps after the step of above-mentioned minimizing Preset Time.At first, judge that whether Preset Time is less than special time.Then, when judging Preset Time, then get back to the step of " detecting the capacity that N audio file play the required storer of Preset Time respectively " greater than special time.Afterwards, when judging Preset Time, then increase the size of preset value less than special time.
In an embodiment of the present invention, above-mentioned multi-medium play method also comprises form and the coding specification that detects audio file.
In an embodiment of the present invention, the form of above-mentioned audio file is a MP3 format.
In an embodiment of the present invention, the size of above-mentioned preset value can change according to the quantity of N audio file.
In an embodiment of the present invention, the initial part of memory stores N audio file broadcast Preset Time is defined as first section of storer, and other sections of storer are defined as second section of storer.
In an embodiment of the present invention, above-mentioned multi-medium play method also comprises the following steps.At first, read first section of storer, with one of them of the initial part of playing N audio file.Then, the part that continues after the initial part of in progress audio file is stored to second section of storer.Afterwards.Read second section of storer, with the broadcast part that continues.
In an embodiment of the present invention, above-mentioned multi-medium play method also comprises the broadcast part of the part that continues is wiped from second section.
The present invention proposes a kind of multi-medium play method, is suitable for a multimedia playing apparatus, and this multimedia playing apparatus has storer and K audio file, K>0.This multi-medium play method comprises the following steps.At first, receive N the audio file that the user selects, wherein 0<N≤K.Then, judge that whether the quantity of N is less than predetermined number.When the quantity of N greater than predetermined number, the preset capacity of then extracting every N audio file is planned the capacity of first section of storer.When the quantity of N less than predetermined number, then plan the capacity of first section of storer according to the quantity of N audio file, extract again in capacity storage to the first section of every N the required storer of audio file.Afterwards, read first section, with play N audio file one of them.
In an embodiment of the present invention, the initial part of memory stores N audio file is defined as first section of storer, and other sections of storer are defined as second section of storer.
In an embodiment of the present invention, above-mentioned multi-medium play method also comprises the following steps.At first, read first section of storer, with one of them of the initial part of playing N audio file.Afterwards, the part that continues after the initial part of in progress audio file is stored to second section of storer.Then, read second section of storer, with the broadcast part that continues.
In an embodiment of the present invention, above-mentioned playing multimedia player method comprises the broadcast part of the part that continues is wiped from second section.
In an embodiment of the present invention, above-mentioned multi-medium play method also comprises form and the coding specification that detects audio file.
In an embodiment of the present invention, the form of above-mentioned audio file is the CD form.
The present invention proposes a kind of multimedia playing apparatus, comprises storage unit, multimedia input interface, user's interface, storer and control module.Storage unit is in order to provide K audio file, K>0.The multimedia input interface is coupled to storage unit, in order to receive K audio file.User's interface is in order to receive the selected N of a user audio file, wherein 0<N≤K.Storer is coupled to the multimedia input interface, has first section and second section, and wherein first section is in order to the initial part of N audio file of storage, and second section is in order to the initial part part that continues outward of N audio file of storage.Control module is coupled to multimedia input interface, storer and user's interface, in order to a foundation N audio file, to adjust the capacity of first section and second section.Wherein, control module can detect the form of K audio file earlier, again according to the quantity of N audio file, adjust the capacity of first section and second section, or judge N audio file in the capacity summation of the required storer of Preset Time whether less than preset value, adjust the capacity of first section and second section.
In an embodiment of the present invention, above-mentioned storer is volatility or nonvolatile memory.
In an embodiment of the present invention, said memory cells is CD or micro hard disk.
In an embodiment of the present invention, above-mentioned audio file is the audio file of CD form or the audio file of MP3 format.
The present invention is by detecting the form and the coding specification thereof of K audio file earlier, and according to the user by N the audio file of selecting in K the audio file, again according to the quantity of N audio file, adjust the capacity of first section and second section, or judge N audio file in the capacity summation of the required storer of Preset Time whether less than preset value, adjust the capacity of first section and second section.Thus, the present invention can plan the shockproof time (surge time) effectively and reduce the playout-delay time.
For above-mentioned feature and advantage of the present invention can be become apparent, embodiment cited below particularly, and conjunction with figs. is described in detail below.
Description of drawings
Fig. 1 illustrates the calcspar into the multimedia playing apparatus of one embodiment of the invention.
Fig. 2 illustrates the process flow diagram into the multi-medium play method of one embodiment of the invention.
Fig. 3 illustrates the process flow diagram into the multi-medium play method of another embodiment of the present invention.
Fig. 4 illustrates the process flow diagram into the multi-medium play method of further embodiment of this invention.
[main element symbol description]
100: multimedia playing apparatus
110: storage unit
120: the multimedia input interface
130: user's interface
140: storer
150: control module
M1: first section of storer 140
M2: second section of storer 140
S201~S217: each step of the multi-medium play method of one embodiment of the invention
S301~S321: each step of the multi-medium play method of another embodiment of the present invention
S401~S415: each step of the multi-medium play method of further embodiment of this invention
Embodiment
Fig. 1 illustrates the calcspar into the multimedia playing apparatus of one embodiment of the invention.Please refer to Fig. 1, multimedia playing apparatus 100 comprises storage unit 110, multimedia input interface 120, user's interface 130, storer 140 and control module 150.Storage unit 110 is in order to provide K audio file, wherein K>0.In the present embodiment, storage unit 110 can be CD (Compact Disc is hereinafter to be referred as CD) or micro hard disk, and the audio file of storage CD form or the audio file of MP3 format.
Multimedia input interface 120 is coupled to storage unit 110, in order to receive K audio file, so that K audio file done follow-up processing.User's interface 130 is in order to receive the selected N of a user audio file, wherein 0<N≤K.That is to say that the user can pass through user's interface 130, provide from storage unit 110 and choose N audio file K the audio file, so that N selected audio file of user made subsequent treatment.For instance, suppose K=10, that is storage unit 110 can provide 10 audio file TR1~TR10, so the user just can choose a required N audio file from audio file TR1~TR10.When if the user chooses 2 audio file TR1 and TR2, that is N=2, and if user when choosing 4 audio file TR1, TR3, TR5, TR8, that is N=4, all the other are then analogized.And the user can be docile and obedient preface and choose or jumping and choosing when choosing the quantity of audio file (N).
Storer 140 is coupled to multimedia input interface 120, have the first section M1 and the second section M2, wherein the first section M1 is in order to the initial part of N audio file of storage, and the second section M1 is in order to the outer part that continues of initial part of N audio file of storage, 30 seconds broadcast part before N audio file of first section M1 storage for example, and 30 seconds before the broadcast part that continues partly of second a storage of sectors N audio file.In the present embodiment, storer 140 is volatile memory (Volatile Memory) or nonvolatile memory (Non-Volatile Memory).
Control module 150 is coupled to multimedia input interface 120, user's interface 130 and storer 140, in order to a foundation N audio file, with first section M1 of adjustment storer 140 and the capacity of the second section M2.Wherein, control module 150 can detect the form (CD form or MP3 format) and the coding specification (256Kbps with VBR or 128Kbps with CBR) thereof of N audio file earlier, adjusts first section M1 of storer 140 and the capacity of the second section M2 again.For instance, the form that detects K audio file when control module 150 is the audio file of MP3 format, then judge N audio file in the capacity summation of the required storer 140 of Preset Time whether less than preset value, adjust the capacity of the first section M1 and the second section M2.Or the form that detects K audio file when control module 150 is the audio file of CD form, then according to the quantity of N audio file, adjusts the capacity of the first section M1 and the second section M2.Dynamically allocate first section M1 of storer 140 and the capacity of the second section M2 by this, so the multimedia playing apparatus 100 of present embodiment can be planned the shockproof time (surge time) effectively and reduce the playout-delay time.
Below with the process flow diagram of matching multi-media player method, illustrate how the multimedia playing apparatus 100 of present embodiment is planned the configuration shockproof time (surge time) and reduced the playout-delay time.
Fig. 2 illustrates the process flow diagram into the multi-medium play method of one embodiment of the invention.The multi-medium play method of present embodiment is for playing the audio file of MP3 format.Please merge with reference to Fig. 1 and Fig. 2, at first, in step S201, receive N the audio file that the user selects, wherein 0<N≤K.For instance, the user can pass through user's interface 130, and the audio file of N is provided from storage unit (for example micro hard disk) 110 K that an is provided audio file.In the present embodiment, suppose K=10, N=3, that is 10 audio file TR1~TR10 of storage unit 110 storages, and the user only chooses audio file TR1, TR3, the TR5 of 3 among 10 audio file TR1~TR10.
Then, in step S203, detect the capacity that N audio file play the required storer of preset time T respectively.Generally speaking, the ratio of compression of MP3 format is approximately between 5: 1 to 11: 1, suppose the capacity M=1M bytes of storer 140, and the ratio of compression of audio file TR1, TR2 and TR3 was respectively 5: 1,7: 1,10: 1, thus the p.s. of audio file TR1, TR3 and TR5 required storer 140 capacity be about 0.028M bytes, 0.02M bytes and 0.014M bytes.Suppose that preset time T is 10 seconds, the capacity that control module 150 can detect audio file TR1, TR3 and 10 seconds required storeies 140 of TR5 broadcast respectively is respectively S1=0.028*10=0.28, S2=0.02*10=0.2 and S3=0.014*10=0.14.
Afterwards, control module 150 can be with the capacity addition of detected audio file TR1, TR3 and 10 seconds required storeies 140 of TR5 broadcast, and the capacity summation that can calculate 10 seconds required storeies 140 of audio file TR1, TR3 and TR5 broadcast is S1+S2+S3=0.62M bytes.And, carry out step S205 again, whether the capacity summation of judging N the required storer 140 of audio file is greater than preset value.That is to say that control module 150 can judge that whether the capacity summation of audio file TR1, TR3 and the required storer 140 of TR5 is greater than preset value.
In the present embodiment, the size of preset value can change according to the quantity of N audio file.For instance, when supposing N=10 (that is 10 audio files), then preset value be storer 140 capacity 60% (for example also even the capacity of storer 140 be 1M bytes, then preset value is 0.6Mbytes), and during N=15 (that is 15 audio files), then preset value be storer 140 capacity 70% (for example also even the capacity of storer 140 be 1M bytes, then preset value is 0.7Mbytes).This adjustment mode only is a kind of adjustment mode of present embodiment, and in order to the form of restriction present embodiment, the visual demand of user does not change the mode of adjusting the preset value size voluntarily.In the present embodiment, be that example describes with the preset value for 0.6M bytes.
Therefore, in step S205, control module 150 can judge audio file TR1, TR3 and TR5 plays the capacity summation of 10 seconds required storeies 140 greater than preset value (0.62M>0.6M), then carry out step S207, minimizing Preset Time.That is to say that control module 150 can reduce the size of preset time T, for example preset time T is changed into 80% of script, that is preset time T becomes 8 seconds.Afterwards, get back among the step S203, control module 150 can detect the capacity of audio file TR1, TR3 and the required storer 140 of TR5 broadcast Preset Time (that is 8 seconds) once more, promptly is respectively S1=0.028*8=0.224M bytes, S2=0.02*8=0.16M bytes, S3=0.014*8=0.112M.
And control module 150 can promptly be calculated the capacity summation S1+S2+S3=0.496M that audio file TR1, TR3 and TR5 play 8 seconds required storeies 140 once more with the capacity addition of audio file TR1, TR3 and 8 seconds required storeies 140 of TR5 broadcast.Then, carry out step S205, control module 150 can judge once more that capacity summation that audio file TR1, TR3 and TR5 play 8 seconds required storeies 140 is whether with greater than preset value.Because 0.496M<0.6M, therefore control module 150 can be judged the capacity summation of audio file TR1, TR3 and 8 seconds required storeies 140 of TR5 broadcast less than preset value, then enter step S209, control module 150 can be play the capacity storage of 8 seconds required storeies 140 in the first section M1 of storer 140 with audio file TR1, TR3 and TR5.
Accept above-mentioned steps S205, if the capacity summation that control module 150 is judged 10 seconds required storeies 140 of audio file TR1, TR3 and TR5 broadcast is during less than preset value, then directly carry out step S209, control module 150 can directly be play the capacity storage of 10 seconds required storeies 140 in the first section M1 of storer 140 with audio file TR1, TR3 and TR5.
In the present embodiment, the initial part that N audio file of storer 140 storages play Preset Time is defined as the first section M1, and other sections of storer 140 are defined as the second section M2.Then in step S211, read the first section M1 of storer 140, with one of them of the initial part of playing N audio file, displaying audio file TR3 for example.Then, in step S213, the part that continues after the initial part of in progress audio file (that is audio file TR3) is stored to the second section M2 of storer 140.That is to say, the part that continues after before the audio file TR3 8 seconds is stored among the second section M2 of storer 140.In the present embodiment, because the capacity of storer 140 is 1M bytes, the capacity of the first section M1 of storer 140 is 0.496Mbytes, so the capacity of the second section M2 of storer 140 is 1-0.496=0.504M bytes.Thus, audio file TR3 has the 0.504/0.02=25.2 shockproof time of second approximately at the second section M2 of storer 140.
In step S215, read the second section M2 of storer 140, with the broadcast part that continues, so multimedia playing apparatus 100 can continue displaying audio file TR3.
In step S217, the part of broadcast of the part that continues is wiped from the second section M2.Because the capacity of the second section M2 of storer 140 has only 0.504M (that is the second section M2 storing audio files TR3 plays 25.2 seconds capacity).So in this step S217, control module 150 can be with the wiping from the second section M2 to play part of the part that continues of audio file TR3, so that the part that newly-increased audio file TR3 does not play, and then lasting displaying audio file TR3.Find out that by above-mentioned audio file TR3 has 8 seconds shockproof time at the first section M1 of storer 140, and in the second section M2 of storer 140, have 25.2 seconds shockproof time, so the total shockproof time of audio file TR3 is 8+25.2=33.2 second.
Because total shockproof time depends primarily on the size of the second section M2, so step S205 is used for avoiding the first section M1 excessive.For instance, if the audio file that the user chooses just in time all is the less file of ratio of compression, then the first section M1 needs bigger capacity.The first section M1 is big more, and relatively the second section M2 is just more little, and so total shockproof time also can reduce.Therefore, in step S205, if the required memory span of audio file then reduces Preset Time greater than preset value in step S207, so that reduce by the first section M1 desired volume.Thus, present embodiment can be planned the shockproof time (surge time) really effectively and reduce the playout-delay time
In order more clearly to describe each step of above-mentioned multi-medium play method, below the detailed process of multi-medium play method of the present invention is described for an embodiment again.Fig. 3 illustrates the process flow diagram into the multi-medium play method of another embodiment of the present invention.The step S301 of present embodiment, S303, S305, S307, S313, S315, S317, S319 and S321 can be with reference to the explanations of step S201, S203, S205, S207, S209, S211, S213, S215 and the S217 of Fig. 2 embodiment, so do not repeat them here.
What deserves to be mentioned is, please merge that in step S307, control module 150 can reduce the size of preset time T with reference to Fig. 1 and Fig. 3.Afterwards, in step S309, control module 150 can judge that whether Preset Time is less than special time.That is to say, control module 150 can judge preset time T be 8 seconds whether less than special time.In the present embodiment, special time is the shockproof time (but that is minimum reproduction time) that the first section M1 of storer 140 can storing audio files, and visual user's demand is adjusted voluntarily.
When control module 150 is judged preset time T not less than special time, then to get back among the step S303, control module 150 can detect the capacity of the required storer 140 of audio file respectively according to adjusted preset time T.Afterwards, control module 150 can judge once more that whether the capacity summation of the required storer 140 of audio file is less than preset value.
The capacity summation of judging the required storer 140 of audio file when control module 150 is then carried out step S313, S315, SS317, S319 during less than preset value.And if control module 150 is judged the capacity summation of the required storer 140 of audio file not less than preset value, then carry out step S307, S309, S303 or step S307, S309, S311.
Accept above-mentioned steps S309, if control module 150 when judging preset time T less than special time, then increases the size of preset value.That is to say, the big ditty of the preset value of the first section M1 of storer 140 is big, for example the size of former preset value is 0.6M bytes, then control module 150 can increase to 0.65M bytes with the size of preset value, this adjustment mode does not limit form of the present invention, and the visual demand of user changes the mode of adjustment voluntarily.
In the present embodiment, the flow process of present embodiment is to adjust preset time T earlier, is subjected to the first section M1 supercompression with the size of avoiding the second section M2.Yet, under preset time T, repair to certain special time, for example less than 1 second, if repair Preset Time under continuing, the effect that reduces playout-delay will not show.Therefore, only when this situation takes place, just select to sacrifice the size of the second section M2, promptly reduce total shockproof time, to exchange preferable minimizing playout-delay effect for.So present embodiment by dynamically allocating storage space, provides total shockproof time and reduces the optimization configuration of playout-delay between the time.Especially, present embodiment has more effect on the less device of storer 140 capacity.
Fig. 4 illustrates the process flow diagram into the kind multi-medium play method of further embodiment of this invention.The multi-medium play method of present embodiment is the audio file of play CD form, and the capacity M=8M bytes of hypothesis storer 140.Please merge with reference to Fig. 1 and Fig. 4, at first,, receive N the audio file that the user selects, wherein 0<N≤K at step S401.For instance, the user can user's interface 130, and the audio file of N is provided from storage unit (for example CD) 110 K that an is provided audio file.In the present embodiment, suppose K=10, N=3, that is 10 audio file TR1~TR10 of storage unit 110 storages, and the user only chooses audio file TR1, TR2, TR6, TR7 and the TR8 of 5 among 10 audio file TR1~TR10.In general, the specification of CD is 650M bytes, and stores 74 minutes audio file, so audio file needs the capacity 0.14M bytes of storer 140 approximately in per second.
Then, in step S403, whether the quantity of judging N is less than predetermined number.In the present embodiment, suppose that predetermined number J is 10, therefore in step S403, control module 150 can be judged the quantity (N=5) of N
When the quantity of N during greater than predetermined number, then carry out step S405, extract the preset capacity of every N audio file, the capacity of first section of planning storer is with the preset capacity of N audio file of storage.In this step S405, control module 150 can detect the preset capacity Q=0.5M bytes of each audio file, because the user chooses 5 audio files, then the capacity of the required storer 140 of audio file TR1, TR2, TR6, TR7 and TR8 is 0.5*5=2.5M bytes, so can be 2.5M bytes with the capacity planning of the first section M1 of storer 140 with control module 150.Because the capacity M=8M bytes of storer 140, then the capacity of the second section M2 of storer 140 is 8-2.5=5.5M bytes.
Then, in step S409, read the first section M1, with one of them of the initial part of playing N audio file, displaying audio file TR2 for example.Because the preset capacity of audio file TR2 is 0.5M bytes, then audio file TR2 can have the 0.5/0.14=3.6 shockproof time of second approximately at the first section M1 of storer 140, that is 3.6 seconds the initial part of the first displaying audio file TR2 of multimedia playing apparatus 100 meetings this moment.
In step S411, the part that continues after the initial part of in progress audio file is stored to the second section M2 of storer 140 afterwards.That is control module 150 can be stored to the second section M2 of storer 140 with initial part (3.6 seconds) part that continues afterwards of audio file TR2, so that allow multimedia playing apparatus 100 sustainable displaying audio file TR2.
Because the capacity of the second section M2 of storer 140 is 5.5M bytes, so audio file TR2 has the 5.5/0.14=39.3 shockproof time of second approximately at the second section M2 of storer 140.Then, in step S413, control module 150 can read the second section M2 of storer 140, so that allow multimedia playing apparatus 100 continue displaying audio file TR2.
In step S415, the part of broadcast that control module 150 can continue audio file TR2 is partly wiped from the second section M2, so that the not broadcast part of the part that continues of the second section M2 of updated stored device 140 makes multimedia playing apparatus 100 can continue displaying audio file TR2.Find out by above-mentioned, audio file TR2 has 3.6 seconds shockproof time at the first section M1 of storer 140, and in the second section M2 of storer 140, have shockproof time of 39.3 seconds, so the total shockproof time of audio file TR2 is 3.6+39.3=42.9 second.Thus, present embodiment can increase the shockproof time of audio file effectively and reduce the playout-delay time.
In another embodiment, if in step S401, the user chooses 10 audio files (N=10).Therefore, in step S403, control module 150 can be judged the quantity of N not less than predetermined number.Afterwards, carry out step S407, according to the capacity of first section of the quantity of N audio file planning storer, extract every N audio file again after, in capacity storage to the first section with the required storer of audio file of every N.
For instance, suppose that audio file is 10 (N=10), then control module 150 can be with the capacity planning of the first section M1 of storer 140 storer 140 capacity 60%, that is 8*0.6=4.8M bytes; If audio file be 15 (N=15) then, control module 150 can be 70% of storer 140 capacity with the capacity planning of the first section M1 of storer 140, that is 8*0.7=5.6M bytes.Capacity of this planning storer 140 first section M1 only be a kind of planning mode of present embodiment, and not in order to limiting the form of present embodiment, the visual demand of user changes the planning mode of capacity of the first section M1 of storer 140 voluntarily.And in the present embodiment, be that 0.6M bytes is that example describes with the capacity of the first section M1 of storer 140 with N=10.Because the capacity of storer 140 is 8M bytes, and the capacity M1=4.8M bytes of the first section M1 of storer 140, so the capacity M2=3.2M bytes of the second section M2 of storer 140.
Accept above-mentioned steps S407, the capacity that control module 150 can extract the required storer 140 of audio file TR1~TR10 is the first section M1 of 4.8/10=0.48M bytes (the capacity mean allocation of the first section M1 that also is about to storer 140 is to each audio file) to storer 140.。
Then, in step S409, read the first section M1, with play N audio file one of them, displaying audio file TR2 for example.Because the capacity of the required storer 140 of audio file TR2 is 0.48M bytes, so audio file TR2 can have the 0.48/0.14=3.4 shockproof time of second approximately at the first section M1 of storer 140, that is 3.4 seconds the initial part of the first displaying audio file TR2 of multimedia playing apparatus 100 meetings this moment.
In step S411, the part that continues after the initial part of in progress audio file is stored to the second section M2 of storer 140 afterwards.That is control module 150 can be stored to the second section M2 of storer 140 with initial part (3.4 seconds) part that continues afterwards of audio file TR2, so that allow multimedia playing apparatus 100 sustainable displaying audio file TR2.
Because the capacity of the second section M2 of storer 140 is 3.2M bytes, so audio file TR2 has the 3.2/0.14=22.9 shockproof time of second approximately at the second section M2 of storer 140.Then, in step S413, control module 150 can read the second section M2 of storer 140, so that allow multimedia playing apparatus 100 continue displaying audio file TR2.
In step S415, the part of broadcast that control module 150 can continue audio file TR2 is partly wiped from the second section M2, so that the not broadcast part of the part that continues of the second section M2 of updated stored device 140 makes multimedia playing apparatus 100 can continue displaying audio file TR2.Find out by above-mentioned, audio file TR2 has 3.4 seconds shockproof time at the first section M1 of storer 140, and in the second section M2 of storer 140, have shockproof time of 22.9 seconds, so the total shockproof time of audio file TR2 is 3.4+22.9=26.3 second.Thus, present embodiment can be planned the shockproof time of audio file effectively and reduce the playout-delay time.
In sum, the present invention is by detecting the form and the coding specification thereof of K audio file earlier, and according to the user by N the audio file of selecting in K the audio file, again according to the quantity of N audio file, adjust the capacity of first section and second section, or judge N audio file in the capacity summation of the required storer of Preset Time whether less than preset value, adjust the capacity of first section and second section, so that the shockproof time of N audio file of planning.
Though the present invention with embodiment openly as above; right its is not in order to qualification the present invention, those skilled in the art, without departing from the spirit and scope of the present invention; when doing a little change and retouching, so protection scope of the present invention is as the criterion when looking the appended claims person of defining.

Claims (14)

1. a multi-medium play method is suitable for a multimedia playing apparatus, and this multimedia playing apparatus has a storer and K audio file, K>0, and this multi-medium play method comprises the following steps:
Receive N the audio file that a user selects, wherein 0<N≤K;
Detect N audio file respectively and play the capacity of required this storer of a Preset Time;
Whether the capacity summation of judging N required this storer of audio file is greater than a preset value;
When the capacity summation of judging N required this storer of audio file during, then reduce this Preset Time, and get back to the step of " detecting the capacity that this N audio file is play required this storer of this Preset Time respectively " greater than this preset value; And
When the capacity summation of judging N required this storer of audio file during less than this preset value, then the initial part that N audio file play this Preset Time is stored in this storer;
Wherein this N of this memory stores audio file initial part of playing this Preset Time is defined as one first section of this storer, and other sections of this storer are defined as one second section of this storer;
Read this first section of this storer, with one of them of the initial part of playing this N audio file; After the initial part of in progress this audio file one part that continues is stored to this second section of this storer; And this second section that reads this storer, to play this part that continues.
2. multi-medium play method as claimed in claim 1, the step that wherein reduces this Preset Time also comprises afterwards:
Judge that whether this Preset Time is less than a special time;
When judging this Preset Time, then get back to the step of " detecting the capacity that N audio file play required this storer of this Preset Time respectively " greater than this special time; And
When judging this Preset Time, then increase the size of this preset value less than this special time.
3. multi-medium play method as claimed in claim 1 also comprises:
Detect a form and a coding specification of N audio file.
4. multi-medium play method as claimed in claim 3, wherein this form of these audio files is a MP3 format.
5. multi-medium play method as claimed in claim 1, wherein the size of this preset value can change according to the quantity of N audio file.
6. multi-medium play method as claimed in claim 1 also comprises:
The part of broadcast of this part that continues is wiped from this second section.
7. a multi-medium play method is suitable for a multimedia playing apparatus, and this multimedia playing apparatus has a storer and K audio file, K>0, and this multi-medium play method comprises the following steps:
Receive N the audio file that a user selects, wherein 0<N≤K;
Whether the quantity of judging N is less than a predetermined number;
When the quantity of N during greater than this predetermined number, then extract a preset capacity of every N audio file, plan the capacity of one first section of this storer, with the preset capacity of N audio file of storage; And
When the quantity of N during less than this predetermined number, then plan the capacity of this first section of this storer according to the quantity of N audio file, the capacity storage of extracting every N required this storer of audio file again is to this first section;
Wherein the initial part of this N of this memory stores audio file is defined as this first section of this storer, and other sections of this storer are defined as one second section of this storer;
Read this first section of this storer, with one of them of the initial part of playing N audio file; After the initial part of in progress this audio file one part that continues is stored to this second section of this storer; And this second section that reads this storer, to play this part that continues.
8. multi-medium play method as claimed in claim 7 also comprises:
The part of broadcast of this part that continues is wiped from this second section.
9. multi-medium play method as claimed in claim 7 also comprises:
Detect a form and a coding specification of N audio file.
10. multi-medium play method as claimed in claim 9, wherein this form of these audio files is the CD form.
11. a multimedia playing apparatus comprises:
One storage unit is in order to provide K audio file, K>0;
One multimedia input interface is coupled to this storage unit, in order to receive K audio file;
One user's interface is in order to receive the selected N of a user audio file, wherein 0<N≤K;
One storer, be coupled to this multimedia input interface, have one first section and one second section, wherein this first section is in order to storing the initial part of this N audio file, and initial part outer the continue part of second section in order to store this N audio file; And
One control module is coupled to this multimedia input interface, this user's interface and this storer, in order to according to this N audio file, and adjusting the capacity of this first section and this second section,
Wherein this control module can detect a form of K audio file earlier, again according to the quantity of N audio file, adjust the capacity of this first section and this second section, or judge N audio file in the capacity summation of required this storer of a Preset Time whether less than preset value, adjust the capacity of this first section and this second section.
12. multimedia playing apparatus as claimed in claim 11, wherein this storer is volatile memory or nonvolatile memory.
13. multimedia playing apparatus as claimed in claim 11, wherein this storage unit is CD or micro hard disk.
14. multimedia playing apparatus as claimed in claim 11, wherein these audio files are the audio file of CD form or the audio file of MP3 format.
CN2008101843945A 2008-12-10 2008-12-10 Multimedia playing method and playing device thereof Expired - Fee Related CN101751961B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101843945A CN101751961B (en) 2008-12-10 2008-12-10 Multimedia playing method and playing device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101843945A CN101751961B (en) 2008-12-10 2008-12-10 Multimedia playing method and playing device thereof

Publications (2)

Publication Number Publication Date
CN101751961A CN101751961A (en) 2010-06-23
CN101751961B true CN101751961B (en) 2011-12-07

Family

ID=42478802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101843945A Expired - Fee Related CN101751961B (en) 2008-12-10 2008-12-10 Multimedia playing method and playing device thereof

Country Status (1)

Country Link
CN (1) CN101751961B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1355920A (en) * 1999-06-16 2002-06-26 索尼计算机娱乐公司 Data transfer apparatus, data transfer system, and data transfer method with double buffering
WO2003003217A2 (en) * 2001-06-29 2003-01-09 Intel Corporation Storing of cache metadata
CN1625778A (en) * 2001-10-22 2005-06-08 苹果电脑公司 Media player with instant play capability

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1355920A (en) * 1999-06-16 2002-06-26 索尼计算机娱乐公司 Data transfer apparatus, data transfer system, and data transfer method with double buffering
WO2003003217A2 (en) * 2001-06-29 2003-01-09 Intel Corporation Storing of cache metadata
CN1625778A (en) * 2001-10-22 2005-06-08 苹果电脑公司 Media player with instant play capability

Also Published As

Publication number Publication date
CN101751961A (en) 2010-06-23

Similar Documents

Publication Publication Date Title
MY127051A (en) Information recording medium and system controller
KR20130055566A (en) Combining user content with supplemental content at a data storage device
WO2004003723A1 (en) Information processing device, information processing method, and information processing program
US20110245946A1 (en) Low power audio play device and method
CN1825427B (en) Music rendition apparatus
CN100505065C (en) Data processing circuit, data processing apparatus, data processing method, data processing control method
JPH05242688A (en) Recording and reproducing device employing flash eeprom
CN101751961B (en) Multimedia playing method and playing device thereof
CN102270483A (en) Methods for reserving index memory space in avi recording apparatus
CN101131847A (en) Multimedia play system, fifo storage and control system and method for storing multimedia data
CN101206894A (en) Recording/reproduction apparatus
CN101911184B (en) Recording/reproduction device
US8037503B2 (en) Method of and device for caching digital content data
UA51808C2 (en) Device for digital data recording
CA2619344C (en) Content data storage device and its control method
KR100403376B1 (en) Device for processing media using external storage
US6047360A (en) System and method of organizing and defragmenting audio events recorded on a storage medium
US20090204776A1 (en) System for securing an access to flash memory device and method for the same
US8185223B2 (en) Multimedia playing method and apparatus using the same
EP0800700B1 (en) Information retrieveal system with serial access data storage and random access data retrieval
JP3448085B2 (en) Information recording / reproducing device
KR100308134B1 (en) Digital audio decoder and decoding method thereof
US20080065825A1 (en) Optical storage device and data storage method thereof
US7640393B2 (en) Signal reproducing device
CN101369447B (en) Method and system for information management of sound frequency memory devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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: 20111207

Termination date: 20191210

CF01 Termination of patent right due to non-payment of annual fee