CN103794232A - Method and apparatus for playing multimedia file - Google Patents

Method and apparatus for playing multimedia file Download PDF

Info

Publication number
CN103794232A
CN103794232A CN201210425864.9A CN201210425864A CN103794232A CN 103794232 A CN103794232 A CN 103794232A CN 201210425864 A CN201210425864 A CN 201210425864A CN 103794232 A CN103794232 A CN 103794232A
Authority
CN
China
Prior art keywords
store files
virtual disk
play multimedia
disk
archives
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.)
Withdrawn
Application number
CN201210425864.9A
Other languages
Chinese (zh)
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 CN201210425864.9A priority Critical patent/CN103794232A/en
Publication of CN103794232A publication Critical patent/CN103794232A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention relates to a method and apparatus for playing multimedia files. The method comprises following steps of: 1) providing a virtual disk; 2) playing a multimedia file; 3) determining whether the virtual disk is activated; 4) writing a storage file in the virtual disk in a process of playing the multimedia file; 5) marking a using state of the storage file; 6) determining whether a preset condition has been set; and 7) determining whether to store the storage file in an real disk according to the using state if the preset condition is satisfied.

Description

The method of play multimedia archives and device
Technical field
The present invention relates to a kind of method and device of playing music, especially a kind of method of play multimedia archives and device.
Background technology
Along with the develop rapidly of Information technology, various high-tech products not only develop quite rapid, also can obtain fast consumer and like behind importing market.Along with the widespread use of current portable electronic consumer products, people not only just use the requirement in function to portable electronic consumer products, and also more and more pay close attention to the quality of various functions, therefore, can following electric consumers, except the variation in function, provide best service property (quality) to become and evaluate the whether leading mark of high-tech product technology.
In the situation that consumer products are quite popularized, more and more multi-user can carry electric consumers with music appreciating in the time going out.With regard to music part, the music archive quality that can play is higher, and audio could be better, just can better obtain consumer's favor.The quality of music archive determines by channel number, sampling rate and baud rate, when channel number is many, sampling rate and baud rate high, music archive quality is just high, but its required hardware handles ability is also just higher.When playing in the process of music, the action of a large amount of operation store file of user, makes CPU there is no to respond in time the data processing requirement of music program, will cause the phenomenon of play sound effect pause and transition in rhythm or melody.Although can use preferably CPU head it off of data-handling capacity instead, can cause portable electronic consumer products cost and price all significantly to improve.
Summary of the invention
The present invention solves the above-mentioned technical matters existing in background technology, and proposes a kind of method and device of play multimedia archives.
Technical solution of the present invention is: the present invention is a kind of device and method of play multimedia archives, and its special character is: the method comprises the following step:
1) provide virtual disk;
2) play multimedia archives;
3) judge whether virtual disk is opened;
4) in play multimedia archives process, write store files to virtual disk;
5) the use state of mark store files;
6) judge pre-conditioned whether setting;
7) when pre-conditioned, according to using Determines whether to store store files to entity disk.
Above-mentioned steps 1) after, step 6) comprised: the stored store files of virtual memory archives economy managing virtual disk.
Above-mentioned steps 3) after, step 5) comprised: the response message of analyzing store files.
Above-mentioned steps 5) after, step 6) comprised: after storing, remove virtual disk.
A device for play multimedia archives, is characterized in that: this device comprises: virtual disk, playing module, play multimedia archives; Judge module, judges whether virtual disk is opened and judge pre-conditioned whether setting; Memory module, store files; Labeling module, the use state of mark store files.
Said apparatus comprises virtual memory archives economy, the store files that managing virtual disk is stored.
Said apparatus comprises analysis module, analyzes the response message of store files.
Said apparatus comprises removing module, after storing, removes virtual disk.
Accompanying drawing explanation
Fig. 1 is the device schematic diagram of play multimedia archives of the present invention;
Embodiment
Referring to Fig. 1, a kind of device of play multimedia archives, is characterized in that: this device comprises: virtual disk 40, playing module 10, play multimedia archives; Judge module 30, judges whether virtual disk is opened and judge pre-conditioned whether setting; Memory module 50, store files; Labeling module 20, the use state of mark store files.
Said apparatus comprises virtual memory archives economy, the store files that managing virtual disk is stored.
Said apparatus comprises analysis module, analyzes the response message of store files.
Said apparatus comprises removing module, after storing, removes virtual disk.
The invention provides the method for play multimedia archives, the method contains the following step:
1) provide virtual disk;
2) play multimedia archives;
3) judge whether virtual disk is opened;
4) in play multimedia archives process, write store files to virtual disk;
5) the use state of mark store files;
6) judge pre-conditioned whether setting;
7) when pre-conditioned, according to using Determines whether to store store files to entity disk.
Above-mentioned steps 1) after, step 6) comprised: the stored store files of virtual memory archives economy managing virtual disk.
Above-mentioned steps 3) after, step 5) comprised: the response message of analyzing store files.
Above-mentioned steps 5) after, step 6) comprised: after storing, remove virtual disk.
The method of play multimedia archives according to the present invention, provides detailed process step as follows:
Step 101: virtual disk is provided.
After host computer system initialization completes, create a virtual disk, wherein, virtual disk refers to apply for a region in internal memory, then manages by the method for hyperdisk, is equivalent to a virtual entity disk.
After establishment virtual disk completes, can carry out initialization to virtual disk, and be suspended in host computer system virtual disk as disk, just be equivalent to increase in host computer system a pseudo-entity disk, and can carry out unified management to this virtual disk and other entity disk through the job procedure (OS) in host computer system, application programs layer is transparent.The file of application layer reads/stores and waits action and unmodified before identical, does not need to do any variation, and application layer can be accomplished binary compatible completely.At this, the present invention is with the stored store files of virtual memory file system management virtual disk, and wherein, virtual memory files system architecture is on file system layer.
Step 102: play multimedia archives.
In this step, with application program play multimedia archives, and multi-medium file can be music archive or video signal archives.
Step 103: judge whether virtual disk is opened;
Step 104: write store files to virtual disk.
Host computer system, in the middle of the process of broadcasting music, if application program has the action of storage file, first deposits store files in virtual disk in, and the response message of this store files is analyzed, and carries out Classification Management.
Step 105: the use state of mark store files.
In this step, the use state of mark store files, and use state is for changing state or opening, is labeled as and changes state and opening by the mark position in layer store files.
At this, change state is that store files has write new data and has been stored in virtual disk, rather than really writes entity disk; Opening is for store files is just by application program is opened, and all direct entity disks of every store files that is labeled as opening, because application program all may continue to write new data at any time to this store files.When after closing application program store files, stop marking opening, remove the opening of this store files.
Step 106: judge pre-conditioned whether setting;
Step 107: when pre-conditioned, judge whether mark meets default use state.
Switching another multi-medium file etc. as user meets when pre-conditioned, can judge that whether store files is for changing and non-opening, if when store files is still opening, get back to step 104, after closing application program store files, remove the opening of this store files; If store files meets default use state, store files, for changing and non-opening, carry out step 106.
Step 108: store store files to entity disk.
Be labeled as and change and the store files of non-opening meets when pre-conditioned switching another multi-medium file etc., all will write entity disk.In addition, write after entity disk in store files, and relevant information in information and the virtual disk of corresponding this store files of scavenger layer, improve the service efficiency of virtual disk.
Under Root catalogue in virtual disk, there is Test.bin, and the zone bit of store files is for changing and non-opening, be copied to by Test.bin under the Root catalogue of target entity disk, if virtual disk is B disk, target entity disk is C disk, then remove the information of the Test.bin responding in B disk, improve the utilization rate of virtual disk.
Store files is stored to the detailed process of virtual disk, comprises the following step:
Step 1: open store files.
Step 2: judge whether to adopt covering and write.
In this step, cover and write if will adopt, carry out step 5; Cover and write if do not adopt, carry out step 3.
Step 3: check whether entity disk has existed store files.
Be B disk at this virtual disk of giving an example, target entity disk is C disk, and VRFS layer can check under the Root catalogue of C disk whether had Test.bin.
Step 4: copy the response catalogue of store files to virtual disk.
There is Test.bin in the Root catalogue of C disk, Test.bin file copy is arrived under the response catalogue of virtual disk.
Step 5: revise response and store path to virtual disk.
Step 6: store store files to virtual disk.
There is not Test.bin in the Root catalogue of C disk, directly the Test.bin of needs storage is stored to response catalogue.
Application program covers the mode writing and stores store files, even there is store files to exist, destroy this file and write new data, if there is no store files, create new store files and write new data, now need to not search for store files at destination path, only need to revise response and store path to virtual disk.
Step 7: the use state of mark store files.
This step is the step 104 of above stated specification, and the state of change and the opening of mark store files are labeled as and change state and opening by the mark position in layer store files.
The present invention is in music process, first store files is write to virtual disk, and manage with the method for hyperdisk, make it be equivalent to a virtual disk, then switch, suspend broadcasting at multi-medium file, to stop broadcasting, system closedown or the low electricity of system etc. different when pre-conditioned, deposit the store files in virtual disk in entity disk, therefore have the following advantages:
(1) effectively solve 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 and makes the level and smooth smooth object of playing process.
(2) significantly reduce the indegree of writing of entity disk, the serviceable life of effectively improving flash memory.Particularly be applied to the embedded device that need to frequently write, effect is particularly evident.

Claims (8)

1. a method for play multimedia archives, is characterized in that: the method comprises the following step:
1) provide virtual disk;
2) play multimedia archives;
3) judge whether virtual disk is opened;
4) in play multimedia archives process, write store files to virtual disk;
5) the use state of mark store files;
6) judge pre-conditioned whether setting;
7) when pre-conditioned, according to using Determines whether to store store files to entity disk.
2. the method for play multimedia archives according to claim 1, is characterized in that: after described step 1), comprise step 6): the stored store files of virtual memory archives economy managing virtual disk.
3. the method for play multimedia archives according to claim 1, is characterized in that: after described step 3), comprise step 5): the response message of analyzing store files.
4. the method for play multimedia archives according to claim 1, is characterized in that: after described step 5), comprise after step 6) stores and remove virtual disk.
5. a device for play multimedia archives, is characterized in that: this device comprises: virtual disk, playing module, play multimedia archives; Judge module, judges whether virtual disk is opened and judge pre-conditioned whether setting; Memory module, store files; Labeling module, the use state of mark store files.
6. the device of play multimedia archives according to claim 5, is characterized in that: described device comprises virtual memory archives economy, the store files that managing virtual disk is stored.
7. the device of play multimedia archives according to claim 5, is characterized in that: described device comprises analysis module, analyzes the response message of store files.
8. the device of play multimedia archives according to claim 5, is characterized in that: described device comprises removing module, after storing, removes virtual disk.
CN201210425864.9A 2012-10-29 2012-10-29 Method and apparatus for playing multimedia file Withdrawn CN103794232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210425864.9A CN103794232A (en) 2012-10-29 2012-10-29 Method and apparatus for playing multimedia file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210425864.9A CN103794232A (en) 2012-10-29 2012-10-29 Method and apparatus for playing multimedia file

Publications (1)

Publication Number Publication Date
CN103794232A true CN103794232A (en) 2014-05-14

Family

ID=50669815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210425864.9A Withdrawn CN103794232A (en) 2012-10-29 2012-10-29 Method and apparatus for playing multimedia file

Country Status (1)

Country Link
CN (1) CN103794232A (en)

Similar Documents

Publication Publication Date Title
JP5204893B2 (en) Distributed media fingerprint repository
US20150120648A1 (en) Context-aware augmented media
BR0212418A (en) Method and apparatus for activating automatic equalization mode
JP2008084524A5 (en)
CN102768846B (en) A kind of audio frequency playing method, device and terminal
CN109189772A (en) File management method and system for no file system storage medium
CN107168651A (en) A kind of small documents polymerize storage processing method
CN101556813B (en) Method for preventing play sound effect from producing pause
JP6042454B2 (en) User-generated data center power saving
CN100580669C (en) Method for realizing cache memory relates to file allocation table on Flash storage medium
CN103207817A (en) Automatic reduction method for virtual machine
CN105373339A (en) Hard disk data copy method and system
CN103794232A (en) Method and apparatus for playing multimedia file
Chen et al. Client-aware cloud storage
TWI599220B (en) Cache data management system and method
CN102968366A (en) Local storage method and device of logs of blu-ray player
CN102265281B (en) The method of the suggestion read list of numerical data is provided to main process equipment
CN203179009U (en) Data cleaning device
CN104103304A (en) Video and audio archival storage and calling method based on LTFS (Linear Tape File System)
CN110321205A (en) A kind of method and apparatus of the management boarding program in host program
Levendoski Solid state drives and the forensic process
TW201009599A (en) Method for audio playing with no staccato
US20230098356A1 (en) Systems and methods for identifying candidate videos for audio experiences
TW200950526A (en) Method for playing streaming data, electronic device for performing the same and information storage media for storing the same
Rostam et al. A proposed framework: Enhanced automated duplication algorithm for flash application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20140514