CN101354658B - Method, system and apparatus for playing sound generating in Java software operation - Google Patents

Method, system and apparatus for playing sound generating in Java software operation Download PDF

Info

Publication number
CN101354658B
CN101354658B CN200810210578A CN200810210578A CN101354658B CN 101354658 B CN101354658 B CN 101354658B CN 200810210578 A CN200810210578 A CN 200810210578A CN 200810210578 A CN200810210578 A CN 200810210578A CN 101354658 B CN101354658 B CN 101354658B
Authority
CN
China
Prior art keywords
audio files
numeral
virtual machine
receiving
java virtual
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
CN200810210578A
Other languages
Chinese (zh)
Other versions
CN101354658A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN200810210578A priority Critical patent/CN101354658B/en
Publication of CN101354658A publication Critical patent/CN101354658A/en
Application granted granted Critical
Publication of CN101354658B publication Critical patent/CN101354658B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to the embedded type technical field, in particular to a method, a system and a device for playing the sound generated by the run of Java. The invention is used for solving the problem that the prior art is hard to meet the requirements of Java software of playing a plurality of sound files in a short time with serious time delay when playing the sound generated by the run of the Java software. The method of the embodiment of the invention comprises the following steps: a transplantation layer generates sound file information for each sound file after receiving sound files from a Java virtual machine; the transplantation layer sends the sound file identification received from the Java virtual machine to a playing layer; and the playing layer finds corresponding sound file information according to the sound file identification, and plays corresponding sound files according to playing parameters in the sound file information. The method of the embodiment of the invention can reduce the time delay for playing sound, and meet the requirements of the Java software of playing a plurality of sound files in a short time.

Description

The sound method, system and the device that produce when playing the Java running software
Technical field
The present invention relates to field of embedded technology, particularly a kind of sound method, system and device of playing the java runtime generation.
Background technology
Java software has obtained application, especially mobile radio terminal field widely in every field at present, and global most of mobile operator have released the Java download service.Radio hand-held equipment market has produced huge demand growth to Java, and present nearly all portable terminal is all supported Java.
The consumer group who enlarges gradually; It is more powerful to make operator, content supplier and portable terminal manufacturing commercial city thirst for the Java performance strongly; Support more more complicated application,, satisfy various information requirements for the user brings more colourful valued added applications.
At present, the acoustic method of broadcast java runtime generation comprises:
A plurality of audio files that Java Virtual Machine will be play are issued graft layers; A plurality of audio files that graft layers will be received store in the file system; Graft layers is confirmed the fileinfo of the audio files that this document sign is corresponding after receiving the file identification that Java Virtual Machine sends, and with this audio files information stores in internal memory; Graft layers sends to broadcast layer with this document sign; Broadcast layer reads corresponding file information according to this document sign from internal memory; Broadcast layer reads corresponding audio files according to fileinfo from file system, and plays.
This mode when playing sound at every turn; Graft layers all need be confirmed the fileinfo of the audio files that this document sign is corresponding; And with this audio files information stores in internal memory; And broadcast layer need read corresponding audio files from file system, so just increased the setup time of played file, thereby increased the time-delay that plays sound.
During like present a lot of Java running software, can play a plurality of audio files at short notice, such as action game, the time-delay that at this moment just requires to play sound is as far as possible little, but the mode that plays sound at present obviously is difficult to satisfy above-mentioned situation.
In sum, when playing the sound of Java running software generation at present, time delay is very serious, is difficult to satisfy the requirement of the Java software of playing a plurality of audio files at short notice.
Summary of the invention
The embodiment of the invention provides a kind of sound method, system and device that java runtime produces of playing; When solving the sound that the broadcast Java running software that exists in the prior art produces; Time delay is very serious, is difficult to satisfy the problem of the Java software requirement of playing a plurality of audio files at short notice.
A kind of sound method of playing the java runtime generation that the embodiment of the invention provides comprises:
Graft layers generates the audio files information of each audio files behind the audio files of receiving from Java Virtual Machine, said audio files information comprises audio files sign and play parameter; Wherein said play parameter comprises AIFC, audio files capacity and sound file decoding parameter;
Said graft layers will receive that the audio files sign from said Java Virtual Machine sends to broadcast layer;
Said broadcast layer is searched corresponding said audio files information according to said audio files sign, and according to the said play parameter in the said audio files information that finds, plays corresponding said audio files.
A kind of system that plays the sound of java runtime generation that the embodiment of the invention provides comprises:
Graft; Be used for behind the audio files of receiving from Java Virtual Machine; Generate the audio files information of each audio files, with receiving that the audio files sign from said Java Virtual Machine sends to player, said audio files information comprises audio files sign and play parameter; Wherein said play parameter comprises AIFC, audio files capacity and sound file decoding parameter;
Player is used for searching corresponding said audio files information according to said audio files sign, and according to the said play parameter in the said audio files information that finds, plays corresponding said audio files.
A kind of graft that the embodiment of the invention provides comprises:
Generation module is used for behind the audio files of receiving from Java Virtual Machine, generates the audio files information of each audio files; Wherein said audio files information comprises audio files sign and play parameter, and said play parameter comprises AIFC, audio files capacity and sound file decoding parameter;
First sending module is used for receiving that the audio files sign from said Java Virtual Machine sends to player.
Embodiment of the invention graft layers generates the audio files information of each audio files behind the audio files of receiving from Java Virtual Machine, said audio files information comprises audio files sign and play parameter; Said graft layers will receive that the audio files sign from said Java Virtual Machine sends to broadcast layer; Said broadcast layer is searched corresponding said audio files information according to said audio files sign, and according to the said play parameter in the said audio files information that finds, plays corresponding said audio files.Because need not be when playing sound at every turn; All need confirm the fileinfo of the audio files that this document sign is corresponding; And with this audio files information stores in internal memory, and can directly from internal memory, read corresponding audio files, thereby reduce the time delay that plays sound; Can satisfy the requirement of the Java software of playing a plurality of audio files at short notice; And the sound playing for the user operates or screen display is coordinated mutually can shorten reproduction time equally, thereby improves user's experience.
Description of drawings
Fig. 1 plays the system architecture synoptic diagram of the sound of java runtime generation for the embodiment of the invention;
Fig. 2 is the structural representation of embodiment of the invention graft;
Fig. 3 plays the sound method schematic flow sheet that java runtime produces for the embodiment of the invention.
Embodiment
Because Java Virtual Machine when sending audio files, is not will play these audio files, but according to the condition of setting of choosing at once; Possible sound played file sends to graft layers, and the graft layers of the embodiment of the invention generates the audio files information of each audio files after receiving audio files; Need be when not playing sound file at every turn; Regeneration audio files information, thus the speed of the file of having accelerated to play sound has reduced the time delay that plays sound.
Wherein, the condition of choosing is relevant with the implementation strategy of Java, such as: can be the quantity of setting of choosing; If recreation also can be the audio files that needs in the pass recreation; If the audio files that java uses in using more after a little while, can select all audio files.
Below in conjunction with Figure of description the embodiment of the invention is described in further detail.
As shown in Figure 1, the system that the embodiment of the invention is play the sound of java runtime generation comprises: graft 10 and player 20.
Graft 10 is used for behind the audio files of receiving from Java Virtual Machine, generates the audio files information of each audio files, after the audio files sign of receiving from said Java Virtual Machine, this audio files sign is sent to player.
Wherein, audio files information comprises audio files sign and play parameter.
Play parameter comprises: AIFC, audio files capacity and sound file decoding parameter.
Player 20 is used for searching corresponding audio files information according to the audio files sign from graft 10, and according to the play parameter in the audio files information that finds, plays corresponding audio files.
Concrete, player 20 is searched audio files information identical with the audio files sign of receiving and the corresponding audio files of this audio files sign from the audio files information that graft 10 generates; According to the play parameter in the audio files information, audio files is decoded, and play.
In the practical implementation process, graft 10 can be with each audio files information stores of each audio files received and generation in sound buffer; Accordingly, player 20 is searched audio files information and corresponding audio files from sound buffer.
If sound buffer receives its capacity limit; Can not store all audio files and sound fileinfo; Then graft 10 stores all audio files information and part audio files in the sound buffer into, and the remainder audio files is stored in other storeies that player 20 can connect; Accordingly, if player 20 can not find corresponding audio files from sound buffer, then search other storeies.
To also have a kind of mode be player 20 with the audio files information in the sound buffer and sound file storage in internal memory; Accordingly, player 20 is searched audio files information and corresponding audio files from internal memory.
Wherein, the audio files sign can be a numeral, and then graft 10 is behind the audio files of receiving from Java Virtual Machine, and for each audio files of receiving distributes a numeral, and each numeral of distributing is different.
Further, graft 10 can also replace with numeral the filename of audio files.
Such as: the file of audio files is called SADF.mid, and the numeral of distributing for this audio files is 1, then can revise the file 1.mid by name of audio files.
Graft 10 can also send to Java Virtual Machine with the filename of the said numeral of distributing and the audio files of correspondence, and then the system of the sound of embodiment of the invention broadcast java runtime generation can further include: Java Virtual Machine 30.
Java Virtual Machine 30 is used for according to the filename of the numeral of receiving with the audio files of correspondence, need to confirm the corresponding numeral of filename of sound played file, and sends to graft 10.
Accordingly, the numeral that will receive of graft 10 sends to player 20.
Then player 20 is searched from audio files information and is comprised with the audio files information of the digital identical numeral of receiving and use the audio files of this numeral as filename; According to the play parameter in the audio files information, audio files is decoded, and play.
As shown in Figure 2, embodiment of the invention graft comprises: the generation module 100 and first sending module 110.
Generation module 100 is used for behind the audio files of receiving from Java Virtual Machine, generates the audio files information of each audio files.
Wherein, generation module 100 can further include: distribution module 1000, parameter module 1010 and package module 1020.
Distribution module 1000 is used for behind the audio files of receiving from Java Virtual Machine, and for each audio files of receiving distributes a numeral, and each numeral of distributing is different, and the numeral that will distribute identifies as audio files.
Such as: receive two audio files, then can be respectively two audio files and distribute 1 and 2 two numeral.
Parameter module 1010 is used for generating corresponding play parameter according to audio files.
Package module 1020 is used for audio files sign and play parameter that same audio files is corresponding and places a said audio files information.
First sending module 110 is used for receiving that the audio files sign from Java Virtual Machine sends to player.
Wherein, embodiment of the invention graft can further include: second sending module 120.
Second sending module 120 is used for the numeral of distribution module 1000 distribution and the filename of the audio files of correspondence are sent to Java Virtual Machine.
In the practical implementation process, second sending module 120 can be set up the corresponding relation of the filename of numeral and audio files, and this corresponding relation is sent to Java Virtual Machine.
As shown in Figure 3, the sound method that the embodiment of the invention is play the java runtime generation comprises the following steps:
Step 300, graft layers generate the audio files information of each audio files behind the audio files of receiving from Java Virtual Machine.
Audio files information comprises audio files sign and play parameter.
Play parameter comprises: AIFC, audio files capacity and sound file decoding parameter.
Wherein, the audio files sign can be a numeral, and then in the step 300, the audio files information that generates each audio files can further include:
Step a300, graft layers are that each audio files of receiving distributes a numeral, and each numeral of distributing is different, and the numeral that will distribute identifies as said audio files.
Such as: receive two audio files, then can be respectively two audio files and distribute 1 and 2 two numeral.
Step b300, graft layers generate corresponding play parameter according to audio files.
Step c300, graft layers said audio files sign and the said play parameter that same audio files is corresponding place a said audio files information.
Need to prove that step a300 and step b300 do not have permanent order, that is to say, promptly can first execution in step a300, execution in step b300 again; Can also first execution in step b300, execution in step a300 again.
Further, graft layers can also replace with numeral the filename of audio files.
Such as: the file of audio files is called SADF.mid, and the numeral of distributing for this audio files is 1, then can revise the file 1.mid by name of audio files.
Step 301, graft layers send to broadcast layer with this audio files sign after the audio files sign of receiving from Java Virtual Machine.
Step 302, broadcast layer are searched corresponding audio files information according to the audio files sign of receiving from graft layers, and according to the play parameter in the audio files information that finds, are play corresponding audio files.
Concrete, broadcast layer is searched audio files information identical with the audio files sign of receiving and the corresponding audio files of this audio files sign from the audio files information that graft layers generates; According to the play parameter in the audio files information, audio files is decoded, and play.
Wherein, can further include between step 300 and the step 301:
Each audio files information stores of each audio files that graft layers will be received and generation is in sound buffer, and then in the step 302, player 20 is searched audio files information and corresponding audio files from sound buffer.
If sound buffer receives its capacity limit; Can not store all audio files and sound fileinfo; Then graft layers stores all audio files information and part audio files in the sound buffer into, and the remainder audio files is stored in other storeies that broadcast layer can connect; Accordingly, if broadcast layer can not find corresponding audio files from sound buffer, then search other storeies.
Wherein, The audio files sign can be a numeral, and then graft 10 is behind the audio files of receiving from Java Virtual Machine, for each audio files of receiving distributes a numeral; And each numeral of distributing is different; And graft 10 can also generate the filename of audio files and the corresponding relation of numeral, and further, graft 10 can also replace with numeral the filename of audio files.
Wherein, can further include between step 300 and the step 301:
The filename of numeral that step S1, graft layers will be distributed and corresponding audio files sends to Java Virtual Machine.
In the practical implementation process, graft layers can be set up the corresponding relation of the filename of numeral and audio files, and this corresponding relation is sent to Java Virtual Machine.
The filename of the digital and corresponding audio files that step S2, Java Virtual Machine basis are received need to be confirmed the corresponding numeral of filename of sound played file, and is sent the numeral of confirming.
Then in the step 301, the numeral that graft layers will be received sends to broadcast layer.In the step 302, broadcast layer is searched from audio files information and is comprised with the audio files information of the digital identical numeral of receiving and use the audio files of this numeral as filename; According to the play parameter in the audio files information, audio files is decoded, and play.
Those skilled in the art should be understood that; Above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element, and alternatively, they can be realized with the executable program code of calculation element; Thereby, can they be stored in the memory storage and carry out by calculation element.Like this, the present invention is not restricted to any specific hardware and software combination.
From the foregoing description, can find out: embodiment of the invention graft layers generates the audio files information of each audio files behind the audio files of receiving from Java Virtual Machine, and said audio files information comprises audio files sign and play parameter; Said graft layers will receive that the audio files sign from said Java Virtual Machine sends to broadcast layer; Said broadcast layer is searched corresponding said audio files information according to said audio files sign, and according to the said play parameter in the said audio files information that finds, plays corresponding said audio files.Because need not be when playing sound at every turn; All need confirm the fileinfo of the audio files that this document sign is corresponding; And with this audio files information stores in internal memory, and can directly from internal memory, read corresponding audio files, thereby reduce the time delay that plays sound; Can satisfy the requirement of the Java software of playing a plurality of audio files at short notice; And the sound playing for the user operates or screen display is coordinated mutually can shorten reproduction time equally, thereby improves user's experience.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. play the sound method that java runtime produces for one kind, it is characterized in that this method comprises:
Graft layers generates the audio files information of each audio files behind the audio files of receiving from Java Virtual Machine, said audio files information comprises audio files sign and play parameter; Wherein said play parameter comprises AIFC, audio files capacity and sound file decoding parameter;
Said graft layers will receive that the audio files sign from said Java Virtual Machine sends to broadcast layer;
Said broadcast layer is searched corresponding said audio files information according to said audio files sign, and according to the said play parameter in the said audio files information that finds, plays corresponding said audio files.
2. the method for claim 1 is characterized in that, the audio files information that said graft layers generates each audio files comprises:
For each audio files of receiving distributes a numeral, and each numeral of distributing is different, and the numeral that will distribute identifies as said audio files;
Generate corresponding play parameter according to said audio files;
Said audio files sign and said play parameter that same audio files is corresponding place a said audio files information.
3. method as claimed in claim 2 is characterized in that, said graft layers will also comprise before will receiving and sending to broadcast layer from the audio files of said Java Virtual Machine sign:
The said numeral that said graft layers will be distributed sends to Java Virtual Machine with the filename of the audio files of correspondence;
Said Java Virtual Machine need to be confirmed the corresponding numeral of filename of sound played file, and is sent to said graft layers according to the filename of the said numeral of receiving with the audio files of correspondence.
4. system that plays the sound that java runtime produces is characterized in that this system comprises:
Graft; Be used for behind the audio files of receiving from Java Virtual Machine; Generate the audio files information of each audio files, with receiving that the audio files sign from said Java Virtual Machine sends to player, said audio files information comprises audio files sign and play parameter; Wherein said play parameter comprises AIFC, audio files capacity and sound file decoding parameter;
Player is used for searching corresponding said audio files information according to said audio files sign, and according to the said play parameter in the said audio files information that finds, plays corresponding said audio files.
5. system as claimed in claim 4 is characterized in that, said graft comprises:
Generation module is used for behind the audio files of receiving from Java Virtual Machine, generates the audio files information of each audio files;
First sending module is used for receiving that the audio files sign from said Java Virtual Machine sends to player.
6. system as claimed in claim 5 is characterized in that, said generation module comprises:
Distribution module is used for behind the audio files of receiving from Java Virtual Machine, and for each audio files of receiving distributes a numeral, and each numeral of distributing is different, and the numeral that will distribute identifies as said audio files;
Parameter module is used for generating corresponding play parameter according to said audio files;
Package module is used for said audio files sign and said play parameter that same audio files is corresponding and places a said audio files information.
7. system as claimed in claim 6 is characterized in that, said graft also comprises:
Second sending module is used for the filename of the said numeral of distributing and the audio files of correspondence is sent to Java Virtual Machine;
Said system comprises:
Java Virtual Machine is used for according to the filename of the said numeral of receiving with the audio files of correspondence, need to confirm the corresponding numeral of filename of sound played file, and sends to said graft.
8. a graft is characterized in that, this graft comprises:
Generation module is used for behind the audio files of receiving from Java Virtual Machine, generates the audio files information of each audio files; Wherein said audio files information comprises audio files sign and play parameter, and said play parameter comprises AIFC, audio files capacity and sound file decoding parameter;
First sending module is used for receiving that the audio files sign from said Java Virtual Machine sends to player.
9. graft as claimed in claim 8 is characterized in that, said generation module comprises:
Distribution module is used for behind the audio files of receiving from Java Virtual Machine, and for each audio files of receiving distributes a numeral, and each numeral of distributing is different, and the numeral that will distribute identifies as said audio files;
Parameter module is used for generating corresponding play parameter according to said audio files;
Package module is used for said audio files sign and said play parameter that same audio files is corresponding and places a said audio files information.
10. graft as claimed in claim 9 is characterized in that, said graft also comprises:
Second sending module is used for the filename of the said numeral of distributing and the audio files of correspondence is sent to Java Virtual Machine.
CN200810210578A 2008-09-02 2008-09-02 Method, system and apparatus for playing sound generating in Java software operation Expired - Fee Related CN101354658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810210578A CN101354658B (en) 2008-09-02 2008-09-02 Method, system and apparatus for playing sound generating in Java software operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810210578A CN101354658B (en) 2008-09-02 2008-09-02 Method, system and apparatus for playing sound generating in Java software operation

Publications (2)

Publication Number Publication Date
CN101354658A CN101354658A (en) 2009-01-28
CN101354658B true CN101354658B (en) 2012-09-26

Family

ID=40307477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810210578A Expired - Fee Related CN101354658B (en) 2008-09-02 2008-09-02 Method, system and apparatus for playing sound generating in Java software operation

Country Status (1)

Country Link
CN (1) CN101354658B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1205149A (en) * 1996-08-30 1999-01-13 阿尔卡塔尔-阿尔斯托姆通用电气公司 Process and system for accessing multimedia document
CN1271125A (en) * 1999-03-30 2000-10-25 国际商业机器公司 Access of resource file in read only storage
CN1805483A (en) * 2006-01-23 2006-07-19 王凌云 Multimedia transmission and playing method and system in mobile phone network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1205149A (en) * 1996-08-30 1999-01-13 阿尔卡塔尔-阿尔斯托姆通用电气公司 Process and system for accessing multimedia document
CN1271125A (en) * 1999-03-30 2000-10-25 国际商业机器公司 Access of resource file in read only storage
CN1805483A (en) * 2006-01-23 2006-07-19 王凌云 Multimedia transmission and playing method and system in mobile phone network

Also Published As

Publication number Publication date
CN101354658A (en) 2009-01-28

Similar Documents

Publication Publication Date Title
CN101272478B (en) Content delivering system and method, server unit and receiving system
JP2820236B2 (en) Karaoke system and karaoke equipment
CN101272570B (en) Method for implementing network karaoke OK and portable equipment
CN1788319A (en) Portable device for storing media content
CN1382290A (en) Method and arrangement for providing customized audio characteristics to cellular terminals
US20170048793A1 (en) System and method for the reception of content items
CN105550037A (en) Method and device for allocating audio resources in multiple systems
CN103187077A (en) Vehicle-mounted equipment, and audio control method and device applied to vehicle-mounted equipment
CN111182087B (en) Flow playback method based on single network card binding multiple IPs
CN103294444A (en) Method and device of providing voice data in computer sharing platform
CN102609302A (en) Multimedia application concurrent-management method and multimedia application concurrent-management device
CN102065340B (en) System and method for implementing multimedia synchronous interaction
CN110139185A (en) A kind of management system of AI intelligent sound box playlist
CN104219555A (en) Video displaying device and method for Android system terminals
CN112068794A (en) Audio mixing control method, device, electronic device and storage medium
CN105681905A (en) Smart television and method and device for improving adaptability of application program thereof
CN101354658B (en) Method, system and apparatus for playing sound generating in Java software operation
CN106257928A (en) Audio file acquisition methods, update notification sending method, equipment and system
CN101472168A (en) Method, system and stream medium server for transmitting stream medium advertisement based on wireless terminal
CN111787462B (en) Audio stream processing method, system, device, and medium
CN102307187A (en) Cloud playback method and device in rearview mirror system
CN102780878B (en) The method and apparatus obtaining media file
US20080058973A1 (en) Music playback system and music playback machine
CN101477820A (en) File playing method and apparatus
CN104967879B (en) Video broadcasting method and device

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: 20120926