CN105550037B - Method and device for allocating audio resources in multiple systems - Google Patents

Method and device for allocating audio resources in multiple systems Download PDF

Info

Publication number
CN105550037B
CN105550037B CN201510918115.3A CN201510918115A CN105550037B CN 105550037 B CN105550037 B CN 105550037B CN 201510918115 A CN201510918115 A CN 201510918115A CN 105550037 B CN105550037 B CN 105550037B
Authority
CN
China
Prior art keywords
audio
priority
audio resource
resource
access request
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.)
Active
Application number
CN201510918115.3A
Other languages
Chinese (zh)
Other versions
CN105550037A (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.)
Yuanxin Information Technology Group Co ltd
Original Assignee
Yuanxin Technology
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 Yuanxin Technology filed Critical Yuanxin Technology
Priority to CN201510918115.3A priority Critical patent/CN105550037B/en
Publication of CN105550037A publication Critical patent/CN105550037A/en
Application granted granted Critical
Publication of CN105550037B publication Critical patent/CN105550037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a method for distributing audio resources in multiple systems, which comprises the steps of obtaining the audio service running state of each system when receiving an audio resource access request from any system, and determining the distribution mode of the audio resources in the multiple systems according to the audio service running state and a preset distribution rule. According to the scheme, the distribution mode of the audio resources in each system in the multiple systems is determined through the preset distribution rule, so that each system can access the audio module in the kernel independently or jointly in a reasonable mode, and the occupation and release of the audio resources among the systems can be carried out in a smooth user-imperceptible mode; in addition, the individual requirements of the user on the terminal use are fully considered, the audio resource access request belonging to the system with higher priority level and the audio resource access request with higher priority level of the audio type can be determined to preferentially occupy the audio resource, the use habit of the user is better met, and the user experience is improved.

Description

The method and device of audio resource is distributed in multisystem
Technical field
The present invention relates to field of computer technology, specifically, the present invention relates to distribute audio resource in a kind of multisystem Method and device.
Background technique
With the development of the times, various emerging operating systems continue to bring out, and it is novel and more convenient to bring for user Terminal usage experience.Existing single operating system, such as android system, are generally made of kernel and ccf layer, as kernel is Linux, runs the service of android ccf layer on kernel, the interaction of the audio-frequency module in the audio service and kernel of ccf layer, And the audio-frequency module in kernel is directly interacted with audio hardware.And in the terminal device of operation multisystem, each system possesses respectively From independent ccf layer, and each system shares same kernel, if accessing in common inner core while each system can be without restriction Audio-frequency module then may cause the confusion of audio-frequency module setting, cause audio hardware to be unable to operate normally, so that audio be caused to broadcast Put logical miss or even dropped audio information.
The solution that therefore, it is necessary to a kind of to be allocated the audio resource of each system in multisystem, each system can The audio-frequency module in kernel is accessed alone or in combination with reasonable manner, so that receiving broadcasting from other any systems After putting the high audio resource solicited message of priority level, user may be played to smooth, comfortable, friendly presentation mode.
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.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart for distributing the method for audio resource in the present invention in the multisystem of one embodiment;
Fig. 2 is the flow chart for distributing the method for audio resource in the present invention in the multisystem of a preferred embodiment;
Fig. 3 is the flow chart for distributing the method for audio resource in the present invention in the multisystem of another preferred embodiment;
Fig. 4 is the flow chart for distributing the method for audio resource in the present invention in the multisystem of another preferred embodiment;
Fig. 5 is the structural schematic diagram for distributing the device of audio resource in the present invention in the multisystem of another embodiment;
Fig. 6 is the structural schematic diagram for distributing the device of audio resource in the present invention in the multisystem of another preferred embodiment;
Fig. 7 is the structural schematic diagram for distributing the device of audio resource in the present invention in the multisystem of further embodiment;
Fig. 8 is the structural schematic diagram for distributing the device of audio resource in the present invention in the multisystem of another preferred embodiment.
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.

Claims (10)

1. distributing the method for audio resource in a kind of multisystem characterized by comprising
When receiving the audio resource access request from any system, the audio service operating status of each system is obtained;
According to the audio service operating status, point of the audio resource in the multisystem is determined by scheduled allocation rule With mode;
Scheduled allocation rule includes that the priority of audio types is higher than the priority of system, prompt tone relevant to call request The priority of audio types of priority and voice communication of the audio types of broadcasting is identical, occupies audio resource in current system Audio types when being voice communication, when any system receives call request in other systems, by the call audio of voice communication Stereo process is carried out with call request prompt tone.
2. distributing the method for audio resource in multisystem according to claim 1, which is characterized in that the scheduled distribution Rule includes being allocated based on system priority to audio resource, wherein according to the audio service operating status, by pre- Fixed allocation rule determines the method for salary distribution of the audio resource in the multisystem, comprising:
The system and the audio resource for comparing the current occupancy audio resource recorded in the audio service operating status access Request the system priority of said system;
If the system priority of the audio resource access request said system is higher, the audio resource is reassigned into institute State audio resource access request said system.
3. distributing the method for audio resource in multisystem according to claim 2, which is characterized in that this method further includes
When front and back switching occurs for the multisystem, the system priority of the two systems to switch is interchangeable adjustment.
4. distributing the method for audio resource in multisystem according to claim 1, which is characterized in that the scheduled distribution Rule includes being allocated based on audio types priority to audio resource, wherein according to the audio service operating status, is led to It crosses scheduled allocation rule and determines the method for salary distribution of the audio resource in the multisystem, comprising:
Compare the current occupancy audio resource recorded in the audio service operating status audio types and the audio resource The priority of access request respective audio type;
If the priority of the audio resource access request respective audio type is higher, the audio resource is reassigned into institute State audio resource access request said system.
5. according to the method for distributing audio resource in the described in any item multisystems of claim 2-4, which is characterized in that according to institute Audio service operating status is stated, the method for salary distribution of the audio resource in the multisystem is determined by scheduled allocation rule, is wrapped It includes:
Determine the global dominance relation between system priority and audio types priority;Compare the audio service operating status The priority of the audio types of the current occupancy audio resource of middle record and the audio resource access request respective audio type, Determine the first comparison result;
The system and the audio resource for comparing the current occupancy audio resource recorded in the audio service operating status access The system priority for requesting 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, is determined Adjust result;
If the adjustment result is that the priority of the audio resource access request respective audio type is higher, the audio is provided Source reassigns to the audio resource access request said system.
6. distributing the device of audio resource in a kind of multisystem characterized by comprising
Module is obtained, for when receiving the audio resource access request from any system, obtaining the audio clothes of each system Business operating status;
Determining module, for determining audio resource in institute by scheduled allocation rule according to the audio service operating status State the method for salary distribution in multisystem;
Scheduled allocation rule includes that the priority of audio types is higher than the priority of system, prompt tone relevant to call request The priority of audio types of priority and voice communication of the audio types of broadcasting is identical, occupies audio resource in current system Audio types when being voice communication, when any system receives call request in other systems, by the call audio of voice communication Stereo process is carried out with call request prompt tone.
7. distributing the device of audio resource in multisystem according to claim 6, which is characterized in that the scheduled distribution Rule includes being allocated based on system priority to audio resource, wherein the determining module specifically includes:
First comparing unit, the system of the current occupancy audio resource for being recorded in the audio service operating status with The system priority of 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 the sound Frequency resource reassigns to the audio resource access request said system.
8. distributing the device of audio resource in multisystem according to claim 7, which is characterized in that 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 is grading Row exchanges adjustment.
9. distributing the device of audio resource in multisystem according to claim 6, which is characterized in that the scheduled distribution Rule includes being allocated based on system priority to audio resource, wherein the determining module specifically includes:
Second comparing unit, the audio class of the current occupancy audio resource for being recorded in the audio service operating status The priority of 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 the sound Frequency resource reassigns to the audio resource access request said system.
10. according to the device for distributing audio resource in the described in any item multisystems of claim 7-9, which is characterized in that described Determining module specifically includes:
Determination unit, for determining the global dominance relation between system priority and audio types priority;
Third comparing unit, the audio class of the current occupancy audio resource for being recorded in the audio service operating status The priority of type and the audio resource access request respective audio type, determines the first comparison result;
4th comparing unit, the system of the current occupancy audio resource for being recorded in the audio service operating status with The system priority of the audio resource access request said system, determines the second comparison result;
Adjustment unit carries out priority to first comparison result and the second comparison result based on the global dominance relation Adjustment determines adjustment result;
Third allocation unit, if being the priority of the audio resource access request respective audio type for the adjustment result It is higher, the audio resource is reassigned into the audio resource access request said system.
CN201510918115.3A 2015-12-11 2015-12-11 Method and device for allocating audio resources in multiple systems Active CN105550037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510918115.3A CN105550037B (en) 2015-12-11 2015-12-11 Method and device for allocating audio resources in multiple systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510918115.3A CN105550037B (en) 2015-12-11 2015-12-11 Method and device for allocating audio resources in multiple systems

Publications (2)

Publication Number Publication Date
CN105550037A CN105550037A (en) 2016-05-04
CN105550037B true CN105550037B (en) 2019-07-12

Family

ID=55829234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510918115.3A Active CN105550037B (en) 2015-12-11 2015-12-11 Method and device for allocating audio resources in multiple systems

Country Status (1)

Country Link
CN (1) CN105550037B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445708A (en) * 2016-10-12 2017-02-22 北京元心科技有限公司 Response method and response device for multi-system events
CN106507194B (en) * 2016-11-15 2019-03-22 四川长虹电器股份有限公司 A kind of Android intelligent television scene management method
CN106776065B (en) * 2016-11-29 2020-09-08 北京元心科技有限公司 Method and device for using Mtp function by multiple systems
CN106851535B (en) * 2017-01-13 2020-08-28 北京元心科技有限公司 Method and device for sharing Bluetooth by multiple systems
WO2019127113A1 (en) * 2017-12-27 2019-07-04 深圳前海达闼云端智能科技有限公司 Audio competition playing device and method therefor and mobile terminal
CN110968350B (en) * 2018-09-30 2023-07-07 成都鼎桥通信技术有限公司 Power amplifier control method and device
WO2020103076A1 (en) * 2018-11-22 2020-05-28 深圳市欢太科技有限公司 Audio playback processing method and apparatus, terminal and computer-readable storage medium
WO2020107177A1 (en) * 2018-11-26 2020-06-04 深圳市欢太科技有限公司 Audio resource invoking method and apparatus, and electronic device
EP3886414A4 (en) * 2018-12-03 2021-12-15 Shenzhen Heytap Technology Corp., Ltd. Alarm clock playback method and apparatus, and electronic device
CN109857530B (en) * 2019-01-21 2021-09-03 湖北亿咖通科技有限公司 Application request scheduling method and device
CN110333961B (en) * 2019-09-04 2019-11-19 宁波均胜普瑞智能车联有限公司 Multisystem audio frequency controller equipment, method and computer readable storage medium
WO2022067564A1 (en) * 2020-09-29 2022-04-07 华为技术有限公司 Method and apparatus for responding to user access request, and storage device
CN115686424A (en) * 2021-07-22 2023-02-03 Oppo广东移动通信有限公司 Priority configuration method, device, equipment and storage medium for audio playing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147938A1 (en) * 2001-04-05 2002-10-10 International Business Machines Corporation System and method for collecting and restoring user environment data using removable storage
CN101114234A (en) * 2006-07-25 2008-01-30 株式会社Ntt都科摩 A peripheral switching device and a peripheral switching control device
CN103257898A (en) * 2012-02-15 2013-08-21 北京邦天信息技术有限公司 Resource allocation method and system in embedded system
CN103299280A (en) * 2010-11-15 2013-09-11 高通股份有限公司 Arbitrating resource acquisition for applications of a multi-processor mobile communications device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147938A1 (en) * 2001-04-05 2002-10-10 International Business Machines Corporation System and method for collecting and restoring user environment data using removable storage
CN101114234A (en) * 2006-07-25 2008-01-30 株式会社Ntt都科摩 A peripheral switching device and a peripheral switching control device
CN103299280A (en) * 2010-11-15 2013-09-11 高通股份有限公司 Arbitrating resource acquisition for applications of a multi-processor mobile communications device
CN103257898A (en) * 2012-02-15 2013-08-21 北京邦天信息技术有限公司 Resource allocation method and system in embedded system

Also Published As

Publication number Publication date
CN105550037A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
CN105550037B (en) Method and device for allocating audio resources in multiple systems
CN106325804B (en) Audio-frequency processing method and system
CN105955693A (en) Method and device for distributing audio-video resource in multisystem
EP0782337B1 (en) Demand-adaptive system and method for telephone requested cable programming
CN110300184A (en) Fringe node distribution method, device, dispatch server and storage medium
BRPI0707858A2 (en) system and method for multiple simultaneous group communications in one wireless system
KR20060054634A (en) Method for managing resources in a mobile terminal
CN109862475A (en) Audio-frequence player device and method, storage medium, communication terminal
CN103517135B (en) Method, system and television capable of playing MP4-format video files continuously
CN103338139A (en) Multi-screen interaction method and device, and terminal equipment
CN106534935A (en) Method and device for controlling hardware resource conflict
KR20110137784A (en) Platform or user sensitive advertising
CN104239151A (en) Resource management method and system
CN104837057A (en) Video file playing method, device and system
CN106454532A (en) Video player and interactive display method thereof
CN105898370A (en) Multi-camera video player, playing system and playing method
CN110457078A (en) Intelligent Service method, device and equipment
CN104867507A (en) Audio file playing method and device
CN106878384A (en) Data forwarding method, its device, bluetooth equipment and audio frequency transmission method
US20170169834A1 (en) Android-based audio content processing method and device
CN102307266B (en) Telephone voice value-added system and communication method thereof
CN114598931A (en) Streaming method, system, device and medium for multi-open cloud game
CN105808198A (en) Audio file processing method and apparatus applied to android system and terminal
CN109495776A (en) The method and intelligent terminal that a kind of audio sends, plays
CN105812914B (en) A kind of the mixed multiplex coding/decoding method and device of video

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210203

Address after: 101300 room 153, 1 / F, building 17, 16 Caixiang East Road, Nancai Town, Shunyi District, Beijing

Patentee after: Yuanxin Information Technology Group Co.,Ltd.

Address before: 100176 room 2222, building D, building 33, 99 Kechuang 14th Street, Beijing Economic and Technological Development Zone, Beijing

Patentee before: BEIJING YUANXIN SCIENCE & TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20160504

Assignee: Beijing Yuanxin Junsheng Technology Co.,Ltd.

Assignor: Yuanxin Information Technology Group Co.,Ltd.

Contract record no.: X2021110000018

Denomination of invention: Method and device for allocating audio resources in multi system

Granted publication date: 20190712

License type: Common License

Record date: 20210531

EE01 Entry into force of recordation of patent licensing contract