CN101556813A - Method for preventing play sound effect from producing pause - Google Patents

Method for preventing play sound effect from producing pause Download PDF

Info

Publication number
CN101556813A
CN101556813A CNA2009100226308A CN200910022630A CN101556813A CN 101556813 A CN101556813 A CN 101556813A CN A2009100226308 A CNA2009100226308 A CN A2009100226308A CN 200910022630 A CN200910022630 A CN 200910022630A CN 101556813 A CN101556813 A CN 101556813A
Authority
CN
China
Prior art keywords
store files
virtual disk
disk
files
store
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.)
Granted
Application number
CNA2009100226308A
Other languages
Chinese (zh)
Other versions
CN101556813B (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.)
Inventec Besta Xian Co Ltd
Original Assignee
Inventec Besta Xian 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 Inventec Besta Xian Co Ltd filed Critical Inventec Besta Xian Co Ltd
Priority to CN2009100226308A priority Critical patent/CN101556813B/en
Publication of CN101556813A publication Critical patent/CN101556813A/en
Application granted granted Critical
Publication of CN101556813B publication Critical patent/CN101556813B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method for preventing play sound effect from producing pause, comprising the following steps of: 1) establishing a virtual disk, initializing the virtual disk, attaching the virtual disk into a host computer system as a disk; 2) playing a multimedia file; 3) firstly memorizing a save document into the virtual disk, when the multimedia file is played and when an application program memorizes a document; 4) marking the special state of the save document; and 5) setting a preset condition, when the preset condition is met, according to the special state of the marked save document, deciding whether to memorize the save document of the virtual disk into a substantive disc. The method effectively solves the problem of sound effect pause caused by the motion of the save document when playing music, achieves the purpose of smooth and fluent playing, greatly reduces the writing times of the substantive disc, and effectively extends the service life of flash memory.

Description

Prevent the method for play sound effect from producing pause
Technical field
The present invention relates to a kind of method of playing back music, especially a kind of method that prevents play sound effect from producing pause.
Background technology
Along with the develop rapidly of Information technology, various high-tech products not only develop quite rapid, also can obtain the consumer fast behind the importing market and like.Widespread use along with current portable electronic consumer products, people are to the not only just requirement on the functions of use of portable electronic consumer products, and the also increasing quality of paying close attention to every function, therefore, can following electric consumers provide best service property (quality) to become and estimate the sign whether the high-tech product technology takes the lead except the variation on function.
Under the situation that the portable electronic consumer products are quite popularized, more and more the multi-user can carry electric consumers with music appreciating when going out.With regard to music partly, the music file quality that can play is high more, and audio could be good more, just can better obtain consumer's favor.The quality of music file is by channel number, sampling rate and baud rate decision,, sampling rate many and baud rate height when channel number, and then the music file quality is just high, but its required hardware handles ability is also just high more.In the process of playing back music, the action of the operation store file that the user is a large amount of makes CPU not have in time to respond the data processing requirement of music program, will cause the phenomenon of play sound effect pause and transition in rhythm or melody.Though can use the preferable CPU head it off of data-handling capacity instead, can cause portable electronic consumer products cost and price all significantly to improve.
Therefore, how under original hardware condition, make the portable electronic consumer products can optimize music, prevent the play sound effect pause and transition in rhythm or melody, the problem that solution must cause HardwareUpgring its cost and price all significantly to improve is an instant problem to be solved.
Summary of the invention
The above-mentioned technical matters of the present invention for existing in the solution background technology, and a kind of method that prevents play sound effect from producing pause is proposed.
Technical solution of the present invention is: the present invention is a kind of method that prevents play sound effect from producing pause, and its special character is: this method comprises the following step:
1) creates virtual disk, virtual disk is carried out initialization, and virtual disk is suspended in the host computer system as disk;
2) play multimedia files;
3) in the middle of the process of play multimedia files, during as if the application storage file, deposit store files in virtual disk earlier;
4) particular state of mark store files;
5) set pre-conditionedly, when meeting when pre-conditioned, whether the store files of virtual disk is stored to the entity disk according to the particular state decision of the store files of mark.
Above-mentioned steps 3) concrete steps that in store files deposited in virtual disk are as follows:
301) open store files.
302) judge whether to adopt covering and write, write, carry out step 305) if will adopt to cover; Do not write if do not adopt to cover, carry out step 303);
303) check whether the entity disk has existed store files, if proceed to step 304), if not, proceed to step 307);
304) store files of replication entity disk is to the response catalogue of virtual disk;
305) revise response and store the path to virtual disk;
306) store store files to virtual disk;
307) the response catalogue that directly store files is stored to.
Above-mentioned steps 4) particular state in is for changing state or opening, and the change state is that store files has write new data, and opening is that store files just is being employed the program unlatching.
Above-mentioned steps 5) in pre-conditioned for switch another multimedia file, suspend play multimedia files, stop play multimedia files, system closedown or system be low.
Above-mentioned steps 5) in,, judges that then whether store files is for changing and non-opening when meeting when one of pre-conditioned, when if store files still is opening, then return step 104), after the closing application program store files, remove the opening of this store files; If store files for changing and non-opening, then is stored to the entity disk with this store files.
Above-mentioned steps 5) also comprises step 8) afterwards: store files is stored to this store files of removing behind the entity disk in the virtual disk.
This method is by the stored store files of virtual memory file system management virtual disk.
The present invention is in the music process, the store files that will store writes virtual disk earlier, and manage with the method for hyperdisk, make it be equivalent to a virtual disk, switch, suspend broadcast then at multimedia file, to stop the low electricity of broadcast, system closedown or system etc. different when pre-conditioned, deposit the store files in the virtual disk in the entity disk, therefore have the following advantages:
1, the present invention effectively solves music in playing process, because the problem of the audio pause and transition in rhythm or melody that the action of storage file causes reaches the purpose that makes the level and smooth smoothness of playing process.
2, the present invention significantly reduces the indegree of writing of entity disk, the serviceable life of effectively improving flash memory.Particularly be applied to the embedded device that need frequently write, effect is particularly evident.
Description of drawings
Fig. 1 prevents the method flow diagram of play sound effect from producing pause for the present invention;
Fig. 2 is a VRFS/File System/Application hierarchical relationship synoptic diagram of the present invention;
Fig. 3 is stored to the virtual disk process flow diagram for the present invention with store files.
Embodiment
Participate in Fig. 1, the inventive method comprises the following step:
Step 101: virtual disk (RAMDisk) is provided.
After the host computer system initialization is finished, create a virtual disk (RAMDisk), wherein, virtual disk refers to zone of application in internal memory, and the method with hyperdisk manages then, is equivalent to a virtual entity disk.The applied host computer system of the present invention is various personal consumption electronic products, as: electronic products such as electronic dictionary, personal computer, mobile computer, PDA (Personal Digital Assistant) (PDA), mobile phone, MP3 music player, but be not limited thereto.
After the establishment virtual disk is finished, can carry out initialization to virtual disk, and virtual disk is suspended in the host computer system as disk, just be equivalent to increase in the host computer system pseudo-entity disk, and can carry out unified management to this virtual disk and other entity disk through the job procedure (OS) in the host computer system, the application programs layer is transparent.The file of application layer reads/stores and waits action with unmodified before identical, does not need to do any variation, and application layer can be accomplished binary compatible completely.At this, the present invention with the virtual memory file system (Virtual RAM File System, VRFS) the stored store files of managing virtual disk, wherein, virtual memory file system framework is on file system (File System) layer, and each hierarchical relationship is referring to Fig. 2.
Step 102: play multimedia files.
In this step, with the application program play multimedia files, and multimedia file can be music file or video files, wherein, music file formats is Mp3, Ogg, PCM or ADPCM, and the video files form is MPEG, AVI, RM and WMV, also can be the multimedia file of other file layout.
Step 103: write store files to virtual disk.
Host computer system is in the middle of the process of playing back music, if application program has the action of storage file, earlier store files is deposited in the virtual disk, and the response message of this store files is analyzed, and carries out Classification Management.
Step 104: (dirty) state of change of mark store files and unlatching (open) state.
In this step, the particular state of mark store files, and particular state is about to VRFS (VRFile System) layer of sign place value tagging in the store files for changing state and opening for changing (dirty) state or unlatching (open) state.
At this, the change state is that store files has write new data and has been stored in virtual disk, rather than really writes the entity disk; Opening is that store files is just opened by application program, and every store files that is labeled as opening all can not directly be stored to the entity disk, because application program all may continue to write new data at any time to this store files.After the closing application program store files, the stop flag opening is promptly removed the opening of this store files.
Step 105: when pre-conditioned, whether judge mark meets default particular state.
In this step, pre-conditioned can be switched another multimedia file, suspends play multimedia files, stopped the play multimedia files or the situation of the low electricity of shutdown of host computer system generation systems or system, but be not limited thereto, or can be new USB electronic installation of host computer system connection; Default particular state is that store files is for changing state and non-opening.
Switching another multimedia file etc. as the user meets when pre-conditioned, promptly can judge store files whether for changing and non-opening,, then get back to step 104 if when store files still is opening, after the closing application program store files, remove the opening of this store files; If store files meets default particular state, promptly store files then carry out step 106 for changing and non-opening.
Step 106: store store files to the entity disk.
Be labeled as and change and the store files of non-opening meets when pre-conditioned switching another multimedia file etc., all will write the entity disk.In addition, after store files writes the entity disk, and remove the information of corresponding this store files of VRFS (VRFile System) layer and the relevant information in the virtual disk, improve the service efficiency of virtual disk.Below for illustrating:
There is Test.bin under the Root catalogue in the virtual disk, and the zone bit of store files is for changing and non-opening, being about to Test.bin is copied under the Root catalogue of target entity disk, as virtual disk is the B disk, the target entity disk is the C disk, promptly duplicate B: Root Test.bin to C: Root Test.bin, remove the information of the Test.bin that responds in the B disk then, improve the utilization rate of virtual disk.
Referring to Fig. 3, store files is stored to the detailed process of virtual disk, comprises the following step:
Step 301: open store files.
Step 302: judge whether to adopt covering and write.
In this step, write, carry out step 305 if will adopt to cover; Do not write if do not adopt to cover, carry out step 303.
Step 303: check whether the entity disk has existed store files.
At this virtual disk of giving an example is the B disk, and the target entity disk is the C disk, and whether VRFS (VRFile System) layer can exist Test.bin under the Root catalogue of inspection C disk.
Step 304: duplicate the response catalogue of store files to virtual disk.
There has been Test.bin in the Root catalogue of C disk, with the Test.bin file copy under the response catalogue of virtual disk, promptly duplicate C: Root Test.bin to B: Root Test.bin.
Step 305: revise response and store the path to virtual disk.
Step 306: store store files to virtual disk.
There is not Test.bin in the Root catalogue of C disk, and the Test.bin that then directly will need to store is stored to the response catalogue of RAMDisk, promptly be stored to B: Root.
Application program covers the mode that writes and stores store files, even there is store files to exist, destroy this document and write new data, if there is not store files, then create new store files and write new data, need not search for store files at destination path this moment, only needs to revise response and store the path to virtual disk.
Step 307: the particular state of mark store files.
This step is the step 104 of above stated specification, and (dirty) state of change of mark store files and unlatching (open) state are about to VRFS (VRFile System) layer of sign place value tagging in the store files for changing state and opening.

Claims (7)

1, a kind of method that prevents play sound effect from producing pause, it is characterized in that: this method comprises the following step:
1) creates virtual disk, virtual disk is carried out initialization, and virtual disk is suspended in the host computer system as disk;
2) play multimedia files;
3) in the middle of the process of play multimedia files, during as if the application storage file, deposit store files in virtual disk earlier;
4) particular state of mark store files;
5) set pre-conditionedly, when meeting when pre-conditioned, whether the store files of virtual disk is stored to the entity disk according to the particular state decision of the store files of mark.
2, the method that prevents play sound effect from producing pause according to claim 1 is characterized in that: the concrete steps that in the described step 3) store files deposited in virtual disk are as follows:
301) open store files;
302) judge whether to adopt covering and write, write, carry out step 305) if will adopt to cover; Do not write if do not adopt to cover, carry out step 303);
303) check whether the entity disk has existed store files, if proceed to step 304), if not, proceed to step 307);
304) store files of replication entity disk is to the response catalogue of virtual disk;
305) revise response and store the path to virtual disk;
306) store store files to virtual disk;
307) the response catalogue that directly store files is stored to.
3, the method that prevents play sound effect from producing pause according to claim 2, it is characterized in that: the particular state in the described step 4) is for changing state or opening, the described state of change is that store files has write new data, and described opening is that store files just is being employed the program unlatching.
4, the method that prevents play sound effect from producing pause according to claim 3 is characterized in that: in the described step 5) pre-conditioned for switch another multimedia file, suspend play multimedia files, stop play multimedia files, system closedown or system be low.
5, the method that prevents play sound effect from producing pause according to claim 4, it is characterized in that: in the described step 5), when meeting when one of pre-conditioned, judge that then whether store files is for changing and non-opening, when if store files still is opening, then return step 104), after the closing application program store files, remove the opening of this store files; If store files for changing and non-opening, then is stored to the entity disk with this store files.
6, according to claim 1 or 2 or 3 or the 4 or 5 described methods that prevent play sound effect from producing pause, it is characterized in that: also comprise step 8) after the described step 5): store files is stored to this store files of removing behind the entity disk in the virtual disk.
7, the method that prevents play sound effect from producing pause according to claim 6 is characterized in that: this method is by the stored store files of virtual memory file system management virtual disk.
CN2009100226308A 2009-05-21 2009-05-21 Method for preventing play sound effect from producing pause Expired - Fee Related CN101556813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100226308A CN101556813B (en) 2009-05-21 2009-05-21 Method for preventing play sound effect from producing pause

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100226308A CN101556813B (en) 2009-05-21 2009-05-21 Method for preventing play sound effect from producing pause

Publications (2)

Publication Number Publication Date
CN101556813A true CN101556813A (en) 2009-10-14
CN101556813B CN101556813B (en) 2010-12-29

Family

ID=41174893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100226308A Expired - Fee Related CN101556813B (en) 2009-05-21 2009-05-21 Method for preventing play sound effect from producing pause

Country Status (1)

Country Link
CN (1) CN101556813B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013135105A1 (en) * 2012-03-12 2013-09-19 华为技术有限公司 Data storage method and data storage device
CN103729302A (en) * 2014-01-02 2014-04-16 厦门雅迅网络股份有限公司 Method for preventing flash subarea from being frequently read and written
CN111124284A (en) * 2019-11-30 2020-05-08 浪潮电子信息产业股份有限公司 Hard disk management method, device and related components

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013135105A1 (en) * 2012-03-12 2013-09-19 华为技术有限公司 Data storage method and data storage device
US9250822B2 (en) 2012-03-12 2016-02-02 Huawei Technologies Co., Ltd. Data storage method and data storage apparatus
CN103729302A (en) * 2014-01-02 2014-04-16 厦门雅迅网络股份有限公司 Method for preventing flash subarea from being frequently read and written
CN111124284A (en) * 2019-11-30 2020-05-08 浪潮电子信息产业股份有限公司 Hard disk management method, device and related components

Also Published As

Publication number Publication date
CN101556813B (en) 2010-12-29

Similar Documents

Publication Publication Date Title
CN101416165B (en) Describing and querying discrete regions of flash storage
TWI317061B (en) Storing system information in a low-latency persistent memory device upon transition to a lower-power state
US20060136502A1 (en) Unified media collection system
TW200810478A (en) Sharing computer data among computers
BR0212418A (en) Method and apparatus for activating automatic equalization mode
CN101556813B (en) Method for preventing play sound effect from producing pause
Hesmondhalgh The digitalisation of music
US9972333B2 (en) Coding apparatus and method, decoding apparatus and method, and program storage medium
CN109189772A (en) File management method and system for no file system storage medium
CN107168651A (en) A kind of small documents polymerize storage processing method
Peng et al. Crossing the chasm with beacon products in the portable music player industry
CN100580669C (en) Method for realizing cache memory relates to file allocation table on Flash storage medium
CN101093416A (en) Computer and energy saving method
Knudsen MP3 Linux Players
TWI599220B (en) Cache data management system and method
CN103794232A (en) Method and apparatus for playing multimedia file
CN101369442B (en) Multi-CD driver synchronous recording method
TW201009599A (en) Method for audio playing with no staccato
US20100077189A1 (en) Computer system having music playing function
TW200950526A (en) Method for playing streaming data, electronic device for performing the same and information storage media for storing the same
Levendoski Solid state drives and the forensic process
JP2006216055A (en) Load determination method and device of input-output instruction in input/output subsystem
TWI235327B (en) Software for implementing to record high-speed real time data
Gilling Haunted by the Glitch: Technological Malfunction-Critiquing the Media of Innovation
CN101097533A (en) System for automatically backup data and method thereof

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
EE01 Entry into force of recordation of patent licensing contract

Assignee: Village Technology Limited

Assignor: Wudi Science and Technology Co., Ltd. (Xian)

Contract record no.: 2011310000129

Denomination of invention: Method for preventing play sound effect from producing pause

Granted publication date: 20101229

License type: Exclusive License

Open date: 20091014

Record date: 20110808

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

Granted publication date: 20101229

Termination date: 20130521