Summary of the invention
To overcome above-mentioned technical problem or at least being partially solved above-mentioned technical problem, spy proposes following technical scheme:
The embodiment of the present invention proposes a kind of method that audio resource is distributed in multisystem, comprising:
When receiving the audio resource access request from any system, the audio service operation shape of each system is obtained
State;
According to the audio service operating status, determine audio resource in the multisystem by scheduled allocation rule
The method of salary distribution.
Preferably, the scheduled allocation rule includes being allocated based on system priority to audio resource, comprising:
Compare the current occupancy audio resource recorded in the audio service operating status system and the audio resource
The system priority of access request said system;
If the system priority of the audio resource access request said system is higher, the audio resource is redistributed
To the audio resource access request said system.
Preferably, this method further include:
When front and back switching occurs for the multisystem, the system priority of the two systems to switch is interchangeable tune
It is whole.
Preferably, the scheduled allocation rule includes being allocated based on audio types priority to audio resource, is wrapped
It includes:
Compare the audio types and the audio of the current occupancy audio resource recorded in the audio service operating status
The priority of resource access request respective audio type;
If the priority of the audio resource access request respective audio type is higher, the audio resource is redistributed
To the audio resource access request said system.
Preferably, this method further include:
Determine the global dominance relation between system priority and audio types priority;Compare the audio service operation
The audio types of the current occupancy audio resource recorded in state are excellent with the audio resource access request respective audio type
First grade determines the first comparison result;
Compare the current occupancy audio resource recorded in the audio service operating status system and the audio resource
The system priority of access request said system determines the second comparison result;
Priority adjustment is carried out to first comparison result and the second comparison result based on the global dominance relation,
Determine adjustment result;
If the adjustment result is that the priority of the audio resource access request respective audio type is higher, by the sound
Frequency resource reassigns to the audio resource access request said system.
Another embodiment of the present invention proposes the device that audio resource is distributed in a kind of multisystem, comprising:
Module is obtained, for obtaining the sound of each system when receiving the audio resource access request from any system
Be taken in small doses at short intervals operating status of being engaged in;
Determining module, for determining audio resource by scheduled allocation rule according to the audio service operating status
The method of salary distribution in the multisystem.
Preferably, the scheduled allocation rule includes being allocated based on system priority to audio resource, described true
Cover half block, comprising:
First comparing unit, current occupancy audio resource for recording in the audio service operating status are
The system priority of system and the audio resource access request said system;
First allocation unit, if the system priority for the audio resource access request said system is higher, by institute
It states audio resource and reassigns to the audio resource access request said system.
Preferably, the device further include:
Module is adjusted, when front and back switching occurs for the multisystem, the System Priority of the two systems to switch
Grade is interchangeable adjustment.
Preferably, the scheduled allocation rule includes being allocated based on audio types priority to audio resource, institute
State determining module, comprising:
Second comparing unit, the sound of the current occupancy audio resource for being recorded in the audio service operating status
The priority of frequency type and the audio resource access request respective audio type;
Second allocation unit, if the priority for the audio resource access request respective audio type is higher, by institute
It states audio resource and reassigns to the audio resource access request said system.
Preferably, the determining module specifically includes:
Determination unit, for determining the global dominance relation between system priority and audio types priority;
Third comparing unit, the sound of the current occupancy audio resource for being recorded in the audio service operating status
The priority of frequency type and the audio resource access request respective audio type, determines the first comparison result;
4th comparing unit, current occupancy audio resource for recording in the audio service operating status are
The system priority of system and the audio resource access request said system, determines the second comparison result;
Adjustment unit carries out first comparison result and the second comparison result based on the global dominance relation excellent
First grade adjustment, determines adjustment result;
Third allocation unit, if being the excellent of the audio resource access request respective audio type for the adjustment result
First grade is higher, and the audio resource is reassigned to the audio resource access request said system.
In the embodiment of the present invention, the scheme for distributing audio resource in a kind of multisystem is proposed, scheduled distribution is passed through
Rule determines the method for salary distribution of audio resource each system in multisystem, so that each system is come alone or in combination with reasonable manner
The audio-frequency module in kernel is accessed, the audio resource between system is carried out in a manner of smooth user's unaware and occupies and discharges;This
Outside, the individual demand that user uses terminal is adequately considered, determines the sound for belonging to the higher system of priority level
The higher audio resource access request of the priority level of frequency resource access request and audio types can preemption tone frequency resource,
It is more in line with the use habit of user, improves user experience.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
Multisystem in the embodiment of the present invention can be realized based on a variety of virtual technologies, hereafter under linux system
The detailed description of embodiment is carried out for container technique.Wherein, the multiple operating system realized using linux container technology, each
It is packed into independent system in container, it is mutually indepedent between multiple systems, and multiple systems operate in same physical terminal device
On.
Fig. 1 is the flow chart for distributing the method for audio resource in the present invention in the multisystem of one embodiment.
Step S110: when receiving the audio resource access request from any system, the audio clothes of each system are obtained
Business operating status;Step S120: according to audio service operating status, determine audio resource in polyphyly by scheduled allocation rule
The method of salary distribution in system.
In the embodiment of the present invention, the scheme for distributing audio resource in a kind of multisystem is proposed, scheduled distribution is passed through
Rule determines the method for salary distribution of audio resource each system in multisystem, so that each system is come alone or in combination with reasonable manner
The audio-frequency module in kernel is accessed, the audio resource between system is carried out in a manner of smooth user's unaware and occupies and discharges;This
Outside, the individual demand that user uses terminal is adequately considered, determines the sound for belonging to the higher system of priority level
The higher audio resource access request of the priority level of frequency resource access request and audio types can preemption tone frequency resource,
It is more in line with the use habit of user, improves user experience.
Step S110: when receiving the audio resource access request from any system, the audio clothes of each system are obtained
Business operating status.
Wherein, audio service operating status includes but is not limited to: audio broadcasting, recording, voice-frequency telephony etc..
For example, including at least system OS in the terminal device of multisystem1With system OS2, which was running
Cheng Zhong, as system OS1When playing music by " QQ music player ", system administration services process records system OS1Audio
Service operation state is that third application program " QQ music player " occupies audio resource broadcasting music, when user closes " QQ sound
When happy player ", correspondingly, the corresponding system OS of system administration services process-kill1Audio service operating status be third
Application program " QQ music player " occupies the record that audio resource plays music.
Wherein, audio resource includes but is not limited to: system resource relevant to audio broadcasting, such as memory, CPU;Audio is hard
Part resource, such as loudspeaker;Built-in microphone;External earphone;Audio in kernel plays Service Source etc..
For example, in the operational process of the terminal device of multisystem, according to the change of the audio service operating status of each system
Change and record the audio service operating status of each system in real time, when terminal device receive from any system with call request phase
When the corresponding audio resource access request of the incoming call prompting sound of pass, the audio service current operating conditions of each system are obtained, such as
Obtain current system OS1Audio service operating status be third party application operation play music.
In another example being visited in the terminal device of multisystem when terminal device receives the audio resource from any system
When asking request, the audio service current operating conditions of each system are directly obtained by controlling the audio service process of each system.
Step S120: according to audio service operating status, determine audio resource in multisystem by scheduled allocation rule
In the method for salary distribution.
Wherein, scheduled allocation rule includes being allocated based on system priority to audio resource, in a preferential implementation
In example, as shown in Fig. 2, determining audio resource in multisystem by scheduled allocation rule according to audio service operating status
The method of salary distribution the step of include step S221 and step S222.Step S221: it is recorded in comparing audio service operation state
The system priority of the current system for occupying audio resource and audio resource access request said system;Step S222: if audio
The system priority of resource access request said system is higher, and audio resource is reassigned to belonging to audio resource access request
System.
For example, the predetermined system for being currently at foreground has the Gao You using audio resource in the terminal device of multisystem
First grade, at this point, system OS1In backstage, system OS2In foreground, system OS is read1The record of audio service operating status is believed
Breath, obtains system OS1Music player currently occupy system audio resource, as system OS2A call request is received, due to
System OS belonging to the call request2It is currently at foreground, therefore can determine system OS belonging to audio resource access request2's
System priority is higher, and then, audio resource is reassigned to system OS belonging to the call request by terminal device2, and temporarily
Stop system OS1Music player operation.
In another preferred embodiment, this method further include: when front and back switching occurs for multisystem, switch two
The system priority of system is interchangeable adjustment.
For example, connecting example, pass through system administration services process detection to the system OS for being currently at foreground2Be currently at
The system OS on backstage1When front and back switching occurs, the system OS on foreground will be in after switching1Be for what audio resource used
System priority level is adjusted to preferentially to use, and the system OS for backstage being in after switching2Audio resource is used it is preferential
Grade is accordingly turned down.
Wherein, scheduled allocation rule includes being allocated based on audio types priority to audio resource, such as Fig. 3 institute
Show, according to audio service operating status, the method for salary distribution of the audio resource in multisystem is determined by scheduled allocation rule
Step includes step S321 and step S322.Step S321: the current occupancy audio recorded in comparing audio service operation state
The audio types of resource and the priority of audio resource access request respective audio type;Step S322: if audio resource accesses
It requests the priority of respective audio type higher, audio resource is reassigned into audio resource access request said system.
For example, the audio types rank that predetermined prompt tone relevant to call request plays is high priority, music
Audio types rank be low priority, as system OS in multisystem terminal device1Audio service operating status in record
The current audio types for occupying audio resource are music, at this time system OS2A call request is received, due to asking with call
The audio types for asking relevant prompt tone to play are superior to the audio types rank of music, therefore terminal device is by audio
Resource reassigns to system OS belonging to call request2, and close system OS1Music player operation.
In another preferred embodiments, as shown in figure 4, this method further include step S421, step S422, step S423,
Step S424 and step S425.Step S421: the global dominance relation between system priority and audio types priority is determined;
Step S422: the audio types and audio resource of the current occupancy audio resource recorded in comparing audio service operation state access
The priority for requesting respective audio type, determines the first comparison result;Step S423: it is recorded in comparing audio service operation state
Current occupancy audio resource system and audio resource access request said system system priority, determine that second compares knot
Fruit;Step S424: priority adjustment is carried out to the first comparison result and the second comparison result based on global dominance relation, is determined
Adjust result;Step S425: if adjustment result is higher for the priority of audio resource access request respective audio type, by audio
Resource reassigns to audio resource access request said system.
For example, scheduled allocation rule includes that the priority of audio types is higher than the priority of system, and predetermined multisystem
In be currently at the system on foreground there is high priority using audio resource compared with the system for being currently at backstage, before being currently at
The system of platform is system OS1, the system in backstage is OS2, system OS1Audio service operating status in record currently account for
It is that quarter-bell prompt tone plays with the audio types of audio resource, is currently at the system OS on backstage at this time2A call is received to ask
When asking, due to being currently at the system OS on backstage2Prompt tone relevant to call request play audio types priority
Higher than being currently at foreground system OS1The priority of audio types that plays of quarter-bell prompt tone, and the priority of audio types
Higher than the priority of system, it is currently at the system OS on foreground1Priority be higher than and be currently at the system OS on backstage2It is preferential
Grade, at this time system OS1Audio service can be by system OS1Playing function relevant to quarter-bell prompt tone close, and by quarter-bell
Prompting mode is changed to vibration prompting, at this time only output system OS2Prompt tone relevant to call request play, terminal device
Audio resource is reassigned into system OS belonging to audio resource access request2。
In another example scheduled allocation rule includes that the priority of audio types is higher than the priority of system, with call request
The priority for the audio types that relevant prompt tone plays is identical as the priority of the audio types of voice communication, before being currently at
The system of platform is system OS1, the system in backstage is OS2, system OS1Audio service operating status in record currently account for
It is voice communication with the audio types of audio resource, is currently at the system OS on backstage at this time2When receiving a call request, by
In the system OS for being currently at backstage2The priority of audio types that plays of prompt tone relevant to call request and current place
In foreground system OS1Voice communication audio types priority it is identical, then can be by system OS1In In Call reduce, and
By system OS1In call audio and system OS2Call request prompt tone carry out stereo process, with for input call audio
With the mixed audio of call request prompt tone.
In a concrete application scene, in the terminal device of multisystem, the system for being currently at foreground is system OS1,
System in backstage is OS2And OS3, when terminal device receives the audio resource access request from any system, directly
The audio service current operating conditions of each system are obtained by the audio service of each system, predetermined audio resource access request
Priority level is from high to low successively are as follows: the priority of prompt tone playing request relevant to call request is higher than from being currently at
The priority of the audio resource access request of the third party application of the system on foreground, from the system for being currently at foreground
The priority of the audio resource access request of third party application is higher than the third party from the system for being currently at backstage and answers
With the priority of the audio resource access request of program;For the third party application from the system for being currently at backstage
Audio resource access request: system OS is come from2Third party application audio resource access request priority be higher than come
From system OS3Third party application audio resource access request priority.It is currently at the system OS on foreground1Sound
The operating status of being engaged in of being taken in small doses at short intervals be the current application program for occupying audio resource is " QQ music player ", is currently at backstage at this time
System OS2With system OS3A call request is received simultaneously respectively, due to coming from system OS2Prompt relevant to call request
The priority level of sound playing request, which is higher than, comes from system OS3Prompt tone playing request relevant to call request priority
Not, and system OS is come from2Prompt tone playing request priority level relevant to call request be higher than be currently at foreground be
Unite OS1" QQ music player " music priority level, audio resource reassigns to system OS by terminal device2, and
Break-Up System OS1" QQ music player " operation, discharge system OS1Occupied audio resource;As system OS2Call
At the end of request, if system OS3Call request also keeping, then audio resource is reassigned to system OS by terminal device3,
As system OS3Call request at the end of, then audio resource is reassigned to system OS by terminal device1Recovery system OS1's
The operation of " QQ music player ";Then, it is currently at the system OS on foreground1With the system OS for being currently at backstage3Carry out front and back
Platform switching, gets system OS at this time1Audio service operating status be current application program " QQ music player " occupy sound
Frequency resource is in the system OS on foreground after switching3The audio resource access request for receiving application program " Tencent's video ", due to
From the system OS for being currently at foreground3The priority level of audio resource access request of application program " Tencent's video " be higher than
From system OS1Application program " QQ music player " audio resource access request, terminal device by audio resource again
It distributes to system OS3, and close system OS1" QQ music player ".
Fig. 5 is the structural schematic diagram for distributing the device of audio resource in the present invention in the multisystem of one embodiment.
When receiving the audio resource access request from any system, the audio that module 510 obtains each system is obtained
Service operation state;Determining module 520 determines that audio resource exists according to audio service operating status, by scheduled allocation rule
The method of salary distribution in multisystem.
In the embodiment of the present invention, the scheme for distributing audio resource in a kind of multisystem is proposed, scheduled distribution is passed through
Rule determines the method for salary distribution of audio resource each system in multisystem, so that each system is come alone or in combination with reasonable manner
The audio-frequency module in kernel is accessed, the audio resource between system is carried out in a manner of smooth user's unaware and occupies and discharges;This
Outside, the individual demand that user uses terminal is adequately considered, determines the sound for belonging to the higher system of priority level
The higher audio resource access request of the priority level of frequency resource access request and audio types can preemption tone frequency resource,
It is more in line with the use habit of user, improves user experience.
When receiving the audio resource access request from any system, the audio that module 510 obtains each system is obtained
Service operation state.
Wherein, audio service operating status includes but is not limited to: audio broadcasting, recording, voice-frequency telephony etc..
In the terminal device of multisystem, system OS is included at least1With system OS2, the terminal device in the process of running,
As system OS1When playing music by " QQ music player ", system administration services process records system OS1Audio service
Operating status is that third application program " QQ music player " occupies audio resource broadcasting music, and when user closes, " QQ music is broadcast
Put device " when, correspondingly, the corresponding system OS of system administration services process-kill1Audio service operating status be third application
Program " QQ music player " occupies the record that audio resource plays music.
Wherein, audio resource includes but is not limited to: system resource relevant to audio broadcasting, such as memory, CPU;Audio is hard
Part resource, such as loudspeaker;Built-in microphone;External earphone;Audio in kernel plays Service Source etc..
For example, in the operational process of the terminal device of multisystem, according to the change of the audio service operating status of each system
Change and record the audio service operating status of each system in real time, when terminal device receive from any system with call request phase
When the corresponding audio resource access request of the incoming call prompting sound of pass, the audio service current operating conditions of each system are obtained, such as
Obtain current system OS1Audio service operating status be third party application operation play music.
In another example being visited in the terminal device of multisystem when terminal device receives the audio resource from any system
When asking request, the audio service current operating conditions of each system are directly obtained by controlling the audio service process of each system.
Determining module 520 determines audio resource in polyphyly according to audio service operating status, by scheduled allocation rule
The method of salary distribution in system.
Wherein, scheduled allocation rule includes being allocated based on system priority to audio resource, in a preferential implementation
In example, as shown in fig. 6, determining module includes the first comparing unit 621 and the first allocation unit 622.First comparing unit 621 ratio
Compared with the system and audio resource access request said system of the current occupancy audio resource recorded in audio service operating status
System priority;If the system priority of audio resource access request said system is higher, the first allocation unit 622 provides audio
Source reassigns to audio resource access request said system.
For example, the predetermined system for being currently at foreground has the Gao You using audio resource in the terminal device of multisystem
First grade, at this point, system OS1In backstage, system OS2In foreground, system OS is read1The record of audio service operating status is believed
Breath, obtains system OS1Music player currently occupy system audio resource, as system OS2A call request is received, due to
System OS belonging to the call request2It is currently at foreground, therefore can determine system OS belonging to audio resource access request2's
System priority is higher, and then, audio resource is reassigned to system OS belonging to the call request by terminal device2, and temporarily
Stop system OS1Music player operation.
In another preferred embodiment, which further includes switching module;When front and back switching occurs for multisystem, switch mould
The system priority of the two systems to switch is interchangeable adjustment by block.
For example, connecting example, pass through system administration services process detection to the system OS for being currently at foreground2Be currently at
The system OS on backstage1When front and back switching occurs, the system OS on foreground will be in after switching1Be for what audio resource used
System priority level is adjusted to preferentially to use, and the system OS for backstage being in after switching2Audio resource is used it is preferential
Grade is accordingly turned down.
Wherein, scheduled allocation rule includes being allocated based on audio types priority to audio resource, such as Fig. 7 institute
Show, determining module includes the second comparing unit 721 and the second allocation unit 722.Second comparing unit, 721 comparing audio service fortune
The audio types of the current occupancy audio resource recorded in row state are preferential with audio resource access request respective audio type
Grade;If the priority of audio resource access request respective audio type is higher, the second allocation unit 722 divides audio resource again
It is assigned to audio resource access request said system.
For example, the audio types rank that predetermined prompt tone relevant to call request plays is high priority, music
Audio types rank be low priority, as system OS in multisystem terminal device1Audio service operating status in record
The current audio types for occupying audio resource are music, at this time system OS2A call request is received, due to asking with call
The audio types for asking relevant prompt tone to play are superior to the audio types rank of music, therefore terminal device is by audio
Resource reassigns to system OS belonging to call request2, and close system OS1Music player operation.
In another preferred embodiments, as shown in figure 8, determining module include determination unit 821, third comparing unit 822,
4th comparing unit 823, adjustment unit 824 and third allocation unit 825.Determination unit 821 determines system priority and audio
Global dominance relation between type priority grade;It is recorded in 822 comparing audio service operation state of third comparing unit current
The audio types of audio resource and the priority of audio resource access request respective audio type are occupied, determine that first compares knot
Fruit;The system and audio of the current occupancy audio resource recorded in 4th comparing unit, 823 comparing audio service operation state provide
The system priority of source access request said system, determines the second comparison result;Adjustment unit 824 is based on global dominance relation pair
First comparison result and the second comparison result carry out priority adjustment, determine adjustment result;If adjustment result is audio resource
The priority of access request respective audio type is higher, and audio resource is reassigned to audio resource by third allocation unit 825
Access request said system.
For example, scheduled allocation rule includes that the priority of audio types is higher than the priority of system, and predetermined multisystem
In be currently at the system on foreground there is high priority using audio resource compared with the system for being currently at backstage, before being currently at
The system of platform is system OS1, the system in backstage is OS2, system OS1Audio service operating status in record currently account for
It is that quarter-bell prompt tone plays with the audio types of audio resource, is currently at the system OS on backstage at this time2A call is received to ask
When asking, due to being currently at the system OS on backstage2Prompt tone relevant to call request play audio types priority
Higher than being currently at foreground system OS1The priority of audio types that plays of quarter-bell prompt tone, and the priority of audio types
Higher than the priority of system, it is currently at the system OS on foreground1Priority be higher than and be currently at the system OS on backstage2It is preferential
Grade, at this time system OS1Audio service can be by system OS1Playing function relevant to quarter-bell prompt tone close, and by quarter-bell
Prompting mode is changed to vibration prompting, at this time only output system OS2Prompt tone relevant to call request play, terminal device
Audio resource is reassigned into system OS belonging to audio resource access request2。
In another example scheduled allocation rule includes that the priority of audio types is higher than the priority of system, with call request
The priority for the audio types that relevant prompt tone plays is identical as the priority of the audio types of voice communication, before being currently at
The system of platform is system OS1, the system in backstage is OS2, system OS1Audio service operating status in record currently account for
It is voice communication with the audio types of audio resource, is currently at the system OS on backstage at this time2When receiving a call request, by
In the system OS for being currently at backstage2The priority of audio types that plays of prompt tone relevant to call request and current place
In foreground system OS1Voice communication audio types priority it is identical, then can be by system OS1In In Call reduce, and
By system OS1In call audio and system OS2Call request prompt tone carry out stereo process, with for input call audio
With the mixed audio of call request prompt tone.
In a concrete application scene, in the terminal device of multisystem, the system for being currently at foreground is system OS1,
System in backstage is OS2And OS3, when terminal device receives the audio resource access request from any system, directly
The audio service current operating conditions of each system are obtained by the audio service of each system, predetermined audio resource access request
Priority level is from high to low successively are as follows: the priority of prompt tone playing request relevant to call request is higher than from being currently at
The priority of the audio resource access request of the third party application of the system on foreground, from the system for being currently at foreground
The priority of the audio resource access request of third party application is higher than the third party from the system for being currently at backstage and answers
With the priority of the audio resource access request of program;For the third party application from the system for being currently at backstage
Audio resource access request: system OS is come from2Third party application audio resource access request priority be higher than come
From system OS3Third party application audio resource access request priority.It is currently at the system OS on foreground1Sound
The operating status of being engaged in of being taken in small doses at short intervals be the current application program for occupying audio resource is " QQ music player ", is currently at backstage at this time
System OS2With system OS3A call request is received simultaneously respectively, due to coming from system OS2Prompt relevant to call request
The priority level of sound playing request, which is higher than, comes from system OS3Prompt tone playing request relevant to call request priority
Not, and system OS is come from2Prompt tone playing request priority level relevant to call request be higher than be currently at foreground be
Unite OS1" QQ music player " music priority level, audio resource reassigns to system OS by terminal device2, and
Break-Up System OS1" QQ music player " operation, discharge system OS1Occupied audio resource;As system OS2Call
At the end of request, if system OS3Call request also keeping, then audio resource is reassigned to system OS by terminal device3,
As system OS3Call request at the end of, then audio resource is reassigned to system OS by terminal device1Recovery system OS1's
The operation of " QQ music player ";Then, it is currently at the system OS on foreground1With the system OS for being currently at backstage3Carry out front and back
Platform switching, gets system OS at this time1Audio service operating status be current application program " QQ music player " occupy sound
Frequency resource is in the system OS on foreground after switching3The audio resource access request for receiving application program " Tencent's video ", due to
From the system OS for being currently at foreground3The priority level of audio resource access request of application program " Tencent's video " be higher than
From system OS1Application program " QQ music player " audio resource access request, terminal device by audio resource again
It distributes to system OS3, and close system OS1" QQ music player ".Those skilled in the art of the present technique are appreciated that the present invention
Including being related to for executing one or more equipment in operation described herein.These equipment can be required purpose
And it specially designs and manufactures, or also may include the known device in general purpose computer.These equipment, which have, to be stored in it
Computer program, these computer programs selectively activate or reconstruct.Such computer program can be stored in and set
In standby (for example, computer) readable medium or it is stored in and is suitable for storing e-command and is coupled to any type of bus respectively
Medium in, the computer-readable medium includes but is not limited to any kind of disk (including floppy disk, hard disk, CD, CD-
ROM and magneto-optic disk), ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, immediately
Memory), EPROM (Erasable Programmable Read-Only Memory, Erarable Programmable Read only Memory),
(Electrically Erasable Programmable Read-Only Memory, electric erazable programmable is read-only to be deposited EEPROM
Reservoir), flash memory, magnetic card or light card.It is, readable medium includes by equipment (for example, computer) can read
Form storage or transmission information any medium.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology neck
Field technique personnel be appreciated that these computer program instructions can be supplied to general purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
The scheme specified in frame or multiple frames of the device to execute structure chart and/or block diagram and/or flow graph disclosed by the invention.
Those skilled in the art of the present technique have been appreciated that in the present invention the various operations crossed by discussion, method, in process
Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention
Kind of operation, method, other steps, measures, and schemes in process may also be alternated, changed, rearranged, decomposed, combined or deleted.
Further, in the prior art to have and the step in various operations, method disclosed in the present invention, process, measure, scheme
It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.