[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105550037A - 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
CN105550037A
CN105550037A CN201510918115.3A CN201510918115A CN105550037A CN 105550037 A CN105550037 A CN 105550037A CN 201510918115 A CN201510918115 A CN 201510918115A CN 105550037 A CN105550037 A CN 105550037A
Authority
CN
China
Prior art keywords
audio
audio resource
priority
access
multisystem
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510918115.3A
Other languages
Chinese (zh)
Other versions
CN105550037B (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

Method and the 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 the method and device of in a kind of multisystem, distributing audio resource.
Background technology
Along with the development in epoch, various emerging operating system continues to bring out, for user brings novelty and terminal experience more easily.Existing single operating system, as android system, is generally made up of kernel and ccf layer, if kernel is Linux, kernel runs the service of android ccf layer, the audio-frequency module in the audio service of ccf layer and kernel mutual, and audio-frequency module in kernel directly and audio hardware mutual.And in the terminal device running multisystem, each system has separately independentccf layer, and each system shares same kernel, if each system can without restriction while audio-frequency module in access common inner core, then may cause the confusion that audio-frequency module is arranged, cause audio hardware normally to run, thus cause audio frequency to play logical miss, even dropped audio information.
Therefore, need a kind of in multisystem to the solution that the audio resource of each system distributes, each system reasonable manner can access audio-frequency module in kernel alone or in combination, make, after receiving the audio resource solicited message high from the broadcasting priority level of other arbitrary systems, user to be played to smooth, comfortable, friendly presentation mode.
Summary of the invention
For overcoming above-mentioned technical matters or solving the problems of the technologies described above at least in part, the following technical scheme of special proposition:
Embodiments of the invention propose a kind of method of distributing audio resource in multisystem, comprising:
When receiving the audio resource request of access from arbitrary system, obtain the audio service running status of each system;
According to described audio service running status, by the predetermined allocation scheme of allocation rule determination audio resource in described multisystem.
Preferably, described predetermined allocation rule comprises distributes audio resource based on system priority, comprising:
That records in more described audio service running status currently takies the system of audio resource and the system priority of described audio resource request of access said system;
If the system priority of described audio resource request of access said system is higher, described audio resource is reassigned to described audio resource request of access said system.
Preferably, the method also comprises:
When described multisystem generation AM/BAM switches, the system priority of two systems switched carries out exchange adjustment.
Preferably, described predetermined allocation rule comprises distributes audio resource based on audio types priority, comprising:
That records in more described audio service running status currently takies the audio types of audio resource and the priority of described audio resource request of access respective audio type;
If the priority of described audio resource request of access respective audio type is higher, described audio resource is reassigned to described audio resource request of access said system.
Preferably, the method also comprises:
Overall precedence relationship between certainty annuity priority and audio types priority; That records in more described audio service running status currently takies the audio types of audio resource and the priority of described audio resource request of access respective audio type, determines the first comparative result;
That records in more described audio service running status currently takies the system of audio resource and the system priority of described audio resource request of access said system, determines the second comparative result;
Based on described overall precedence relationship, priority adjustment is carried out to described first comparative result and the second comparative result, determine to adjust result;
If described adjustment result is that the priority of described audio resource request of access respective audio type is higher, described audio resource is reassigned to described audio resource request of access said system.
Another embodiment of the present invention proposes the device distributing audio resource in a kind of multisystem, comprising:
Acquisition module, for when the audio resource request of access received from arbitrary system, obtains the audio service running status of each system;
Determination module, for according to described audio service running status, by the predetermined allocation scheme of allocation rule determination audio resource in described multisystem.
Preferably, described predetermined allocation rule comprises distributes audio resource based on system priority, and described determination module, comprising:
First comparing unit, currently takies the system of audio resource and the system priority of described audio resource request of access said system for what record in more described audio service running status;
First allocation units, if higher for the system priority of described audio resource request of access said system, reassign to described audio resource request of access said system by described audio resource.
Preferably, this device also comprises:
Adjusting module, when switching for described multisystem generation AM/BAM, the system priority of two systems switched carries out exchange adjustment.
Preferably, described predetermined allocation rule comprises distributes audio resource based on audio types priority, and described determination module, comprising:
Second comparing unit, currently takies the audio types of audio resource and the priority of described audio resource request of access respective audio type for what record in more described audio service running status;
Second allocation units, if higher for the priority of described audio resource request of access respective audio type, reassign to described audio resource request of access said system by described audio resource.
Preferably, described determination module specifically comprises:
Determining unit, for the overall precedence relationship between certainty annuity priority and audio types priority;
3rd comparing unit, currently takies the audio types of audio resource and the priority of described audio resource request of access respective audio type for what record in more described audio service running status, determines the first comparative result;
4th comparing unit, currently takies the system of audio resource and the system priority of described audio resource request of access said system for what record in more described audio service running status, determines the second comparative result;
Adjustment unit, carries out priority adjustment based on described overall precedence relationship to described first comparative result and the second comparative result, determines to adjust result;
3rd allocation units, if be that the priority of described audio resource request of access respective audio type is higher for described adjustment result, reassign to described audio resource request of access said system by described audio resource.
In embodiments of the invention, propose the scheme of distributing audio resource in a kind of multisystem, by the allocation scheme of predetermined allocation rule determination audio resource each system in multisystem, make each system access audio-frequency module in kernel alone or in combination with reasonable manner, take with the mode audio resource carried out between system of smooth and easy user's unaware and discharge; In addition, consider the individual demand that user uses for terminal fully, determining to belong to the higher audio resource request of access of the priority level of the audio resource request of access of the higher system of priority level and audio types can preemption tone resource frequently, more meet the use habit of user, improve Consumer's Experience.
The aspect that the present invention adds and advantage will part provide in the following description, and these will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage below in conjunction with accompanying drawingobvious and easy understand will be become in the description of embodiment, wherein:
fig. 1the flow process of the method for audio resource is distributed in multisystem for an embodiment in the present invention figure;
fig. 2the flow process of the method for audio resource is distributed in multisystem for a preferred embodiment in the present invention figure;
fig. 3the structural representation of the device of audio resource is distributed in multisystem for another embodiment in the present invention figure;
fig. 4the flow process of the method for audio resource is distributed in multisystem for preferred embodiment another in the present invention figure;
fig. 5the structural representation of the device of audio resource is distributed in multisystem for another embodiment in the present invention figure;
fig. 6the structural representation of the device of audio resource is distributed in multisystem for another preferred embodiment in the present invention figure;
fig. 7the structural representation of the device of audio resource is distributed in multisystem for a preferred embodiment again in the present invention figure;
fig. 8the structural representation of the device of audio resource is distributed in multisystem for preferred embodiment another in the present invention figure.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment exists in accompanying drawingillustrate, wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Below by reference accompanying drawingthe embodiment described is exemplary, only for explaining the present invention, and can not be interpreted as limitation of the present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, and singulative used herein " ", " one ", " described " and " being somebody's turn to do " also can comprise plural form.Should be further understood that, the wording used in instructions of the present invention " comprises " and refers to there is described feature, integer, step, operation, element and/or assembly, but does not get rid of and exist or add other features one or more, integer, step, operation, element, assembly and/or their group.Should be appreciated that, when we claim element to be " connected " or " coupling " to another element time, it can be directly connected or coupled to other elements, or also can there is intermediary element.In addition, " connection " used herein or " coupling " can comprise wireless connections or wirelessly to couple.Wording "and/or" used herein comprises one or more whole or arbitrary unit listing item be associated and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (comprising technical term and scientific terminology), have the meaning identical with the general understanding of the those of ordinary skill in field belonging to the present invention.It should also be understood that, those terms defined in such as general dictionary, should be understood to that there is the meaning consistent with the meaning in the context of prior art, unless and by specific definitions as here, otherwise can not explain by idealized or too formal implication.
Multisystem in embodiments of the invention can realize based on multiple virtual technology, hereafter carries out the detailed description of embodiment for the container technique under linux system.Wherein, the multiple operating system using linux container technology to realize, loads in each container independentsystem, between multiple system mutually independent, and multiple system cloud gray model is on same physical terminal device.
fig. 1the flow process of the method for audio resource is distributed in multisystem for an embodiment in the present invention figure.
Step S110: when receiving the audio resource request of access from arbitrary system, obtain the audio service running status of each system; Step S120: according to audio service running status, by the predetermined allocation scheme of allocation rule determination audio resource in multisystem.
In embodiments of the invention, propose the scheme of distributing audio resource in a kind of multisystem, by the allocation scheme of predetermined allocation rule determination audio resource each system in multisystem, make each system access audio-frequency module in kernel alone or in combination with reasonable manner, take with the mode audio resource carried out between system of smooth and easy user's unaware and discharge; In addition, consider the individual demand that user uses for terminal fully, determining to belong to the higher audio resource request of access of the priority level of the audio resource request of access of the higher system of priority level and audio types can preemption tone resource frequently, more meet the use habit of user, improve Consumer's Experience.
Step S110: when receiving the audio resource request of access from arbitrary system, obtain the audio service running status of each system.
Wherein, audio service running status includes but not limited to: audio frequency broadcasting, recording, voice-frequency telephony etc.
Such as, in the terminal device of multisystem, at least system OS is comprised 1with system OS 2, this terminal device in operational process, as system OS 1when playing music by " QQ music player ", system administration services process records system OS 1audio service running status be the 3rd application program " QQ music player " take audio resource play music, when user close " QQ music player " time, correspondingly, the corresponding system OS of system administration services process-kill 1audio service running status be that the 3rd application program " QQ music player " takies audio resource and plays the record of music.
Wherein, audio resource includes but not limited to: play relevant system resource to audio frequency, as internal memory, CPU; Audio hardware resource, as loudspeaker; Built-in microphone; External earphone; Audio frequency in kernel plays Service Source etc.
Such as, in the operational process of the terminal device of multisystem, according to the audio service running status of each system of change real time record of the audio service running status of each system, when terminal device receives audio resource request of access corresponding to the incoming call prompting sound relevant to call request from arbitrary system, obtain the audio service current operating conditions of each system, as obtained current system OS 1audio service running status be third party application run play music.
Again such as, in the terminal device of multisystem, when terminal device receives the audio resource request of access from arbitrary system, the audio service process directly by controlling each system obtains the audio service current operating conditions of each system.
Step S120: according to audio service running status, by the predetermined allocation scheme of allocation rule determination audio resource in multisystem.
Wherein, predetermined allocation rule comprises distributes audio resource based on system priority, in a preferred embodiments, as Fig. 2shown in, according to audio service running status, comprise step S221 and step S222 by the step of the predetermined allocation scheme of allocation rule determination audio resource in multisystem.Step S221: that records in comparing audio service operation state currently takies the system of audio resource and the system priority of audio resource request of access said system; Step S222: if the system priority of audio resource request of access said system is higher, audio resource is reassigned to audio resource request of access said system.
Such as, in the terminal device of multisystem, the predetermined current system being in foreground has the high priority using audio resource, now, and system OS 1be in backstage, system OS 2be in foreground, reading system OS 1the recorded information of audio service running status, obtains system OS 1music player currently take system audio resource, as system OS 2receive a call request, due to the system OS belonging to this call request 2currently be in foreground, therefore can determine the system OS belonging to audio resource request of access 2system priority higher, subsequently, audio resource is reassigned to the system OS belonging to this call request by terminal device 2, and Break-Up System OS 1the operation of music player.
In another preferred embodiment, the method also comprises: when multisystem generation AM/BAM switches, and the system priority of two systems switched carries out exchange adjustment.
Such as, connect example, by system administration services process detection to the current system OS being in foreground 2with the current system OS being in backstage 1when there is AM/BAM switching, after switching, be in the system OS on foreground 1the System Priority rank that audio resource is used be adjusted to preferential use, and be in the system OS on backstage after switching 2the priority that audio resource is used correspondingly to turn down.
Wherein, predetermined allocation rule comprises distributes audio resource based on audio types priority, as Fig. 3shown in, according to audio service running status, comprise step S321 and step S322 by the step of the predetermined allocation scheme of allocation rule determination audio resource in multisystem.Step S321: that records in comparing audio service operation state currently takies the audio types of audio resource and the priority of audio resource request of access respective audio type; Step S322: if the priority of audio resource request of access respective audio type is higher, audio resource is reassigned to audio resource request of access said system.
Such as, the audio types rank that the predetermined prompt tone relevant to call request is play is high priority, and the audio types rank of music is low priority, as system OS in multisystem terminal device 1audio service running status in the current audio types taking audio resource that records be music, now system OS 2receive a call request, the audio types due to the prompt tone relevant to call request broadcasting is superior to the audio types rank of music, and therefore audio resource is reassigned to the system OS belonging to call request by terminal device 2, and shutdown system OS 1the operation of music player.
In another preferred embodiments, as Fig. 4shown in, the method also comprises step S421, step S422, step S423, step S424 and step S425.Step S421: the overall precedence relationship between certainty annuity priority and audio types priority; Step S422: that records in comparing audio service operation state currently takies the audio types of audio resource and the priority of audio resource request of access respective audio type, determines the first comparative result; Step S423: that records in comparing audio service operation state currently takies the system of audio resource and the system priority of audio resource request of access said system, determines the second comparative result; Step S424: carry out priority adjustment to the first comparative result and the second comparative result based on overall precedence relationship, determines to adjust result; Step S425: if adjustment result is that the priority of audio resource request of access respective audio type is higher, audio resource is reassigned to audio resource request of access said system.
Such as, predetermined allocation rule comprises the priority of priority higher than system of audio types, and the current more current system being in backstage of system being in foreground has the high priority using audio resource in predetermined multisystem, the current system being in foreground is system OS 1, the system being in backstage is OS 2, system OS 1audio service running status in the current audio types taking audio resource that records be that quarter-bell prompt tone is play, the now current system OS being in backstage 2when receiving a call request, due to the current system OS being in backstage 2the priority of audio types play of the prompt tone relevant to call request be in foreground system OS higher than current 1the priority of audio types play of quarter-bell prompt tone, and the priority of audio types is higher than the priority of system, the current system OS being in foreground 1priority higher than the current system OS being in backstage 2priority, now system OS 1audio service can by system OS 1the playing function relevant to quarter-bell prompt tone close, and the prompting mode of quarter-bell is changed to vibration prompting, now only output system OS 2the prompt tone relevant to call request play, audio resource is reassigned to the system OS belonging to audio resource request of access by terminal device 2.
Again such as, predetermined allocation rule comprises the priority of priority higher than system of audio types, the priority of the priority of the audio types that the prompt tone of being correlated with call request is play and the audio types of voice call is identical, and the current system being in foreground is system OS 1, the system being in backstage is OS 2, system OS 1audio service running status in the current audio types taking audio resource that records be voice call, the now current system OS being in backstage 2when receiving a call request, due to the current system OS being in backstage 2the priority of audio types play of the prompt tone relevant to call request and be currently in foreground system OS 1the priority of audio types of voice call identical, then can by system OS 1in In Call reduce, and by system OS 1in call audio frequency and system OS 2call request prompt tone carry out stereo process, for input call audio frequency and the mixed audio of call request prompt tone.
In an embody rule scene, in the terminal device of multisystem, the current system being in foreground is system OS 1, the system being in backstage is OS 2and OS 3, when terminal device receives the audio resource request of access from arbitrary system, the audio service current operating conditions of each system is directly obtained by the audio service of each system, the priority level of predetermined audio resource access request is followed successively by from high to low: the priority of the prompt tone playing request relevant to call request is higher than from the current priority being in the audio resource request of access of the third party application of the system on foreground, from the current priority being in the audio resource request of access of the third party application of the system on foreground higher than from the current priority being in the audio resource request of access of the third party application of the system on backstage, for from the current audio resource request of access being in the third party application of the system on backstage: from system OS 2the priority of audio resource request of access of third party application higher than from system OS 3the priority of audio resource request of access of third party application.The current system OS being in foreground 1audio service running status be the current application program taking audio resource be " QQ music player ", the now current system OS being in backstage 2with system OS 3receive a call request respectively, due to from system OS simultaneously 2the priority level of the prompt tone playing request relevant to call request higher than from system OS 3the priority level of the prompt tone playing request relevant to call request, and from system OS 2the prompt tone playing request priority level relevant to call request higher than the current system OS being in foreground 1the music priority level of " QQ music player ", audio resource is reassigned to system OS by terminal device 2, and Break-Up System OS 1the operation of " QQ music player ", delivery system OS 1shared audio resource; As system OS 2call request at the end of, if system OS 3call request also maintenance, then audio resource is reassigned to system OS by terminal device 3, as system OS 3call request at the end of, then audio resource is reassigned to system OS by terminal device 1recovery system OS 1the operation of " QQ music player "; Subsequently, the current system OS being in foreground 1with the current system OS being in backstage 3carry out AM/BAM switching, now get system OS 1audio service running status be that current application program " QQ music player " takies audio resource, be in the system OS on foreground after switching 3receive the audio resource request of access of application program " Tengxun's video ", due to from the current system OS being in foreground 3the priority level of audio resource request of access of application program " Tengxun's video " higher than from system OS 1the audio resource request of access of application program " QQ music player ", audio resource is reassigned to system OS by terminal device 3, and shutdown system OS 1" QQ music player ".
fig. 5the structural representation of the device of audio resource is distributed in multisystem for an embodiment in the present invention figure.
When receiving the audio resource request of access from arbitrary system, acquisition module 510 obtains the audio service running status of each system; Determination module 520 according to audio service running status, by the predetermined allocation scheme of allocation rule determination audio resource in multisystem.
In embodiments of the invention, propose the scheme of distributing audio resource in a kind of multisystem, by the allocation scheme of predetermined allocation rule determination audio resource each system in multisystem, make each system access audio-frequency module in kernel alone or in combination with reasonable manner, take with the mode audio resource carried out between system of smooth and easy user's unaware and discharge; In addition, consider the individual demand that user uses for terminal fully, determining to belong to the higher audio resource request of access of the priority level of the audio resource request of access of the higher system of priority level and audio types can preemption tone resource frequently, more meet the use habit of user, improve Consumer's Experience.
When receiving the audio resource request of access from arbitrary system, acquisition module 510 obtains the audio service running status of each system.
Wherein, audio service running status includes but not limited to: audio frequency broadcasting, recording, voice-frequency telephony etc.
In the terminal device of multisystem, at least comprise system OS 1with system OS 2, this terminal device in operational process, as system OS 1when playing music by " QQ music player ", system administration services process records system OS 1audio service running status be the 3rd application program " QQ music player " take audio resource play music, when user close " QQ music player " time, correspondingly, the corresponding system OS of system administration services process-kill 1audio service running status be that the 3rd application program " QQ music player " takies audio resource and plays the record of music.
Wherein, audio resource includes but not limited to: play relevant system resource to audio frequency, as internal memory, CPU; Audio hardware resource, as loudspeaker; Built-in microphone; External earphone; Audio frequency in kernel plays Service Source etc.
Such as, in the operational process of the terminal device of multisystem, according to the audio service running status of each system of change real time record of the audio service running status of each system, when terminal device receives audio resource request of access corresponding to the incoming call prompting sound relevant to call request from arbitrary system, obtain the audio service current operating conditions of each system, as obtained current system OS 1audio service running status be third party application run play music.
Again such as, in the terminal device of multisystem, when terminal device receives the audio resource request of access from arbitrary system, the audio service process directly by controlling each system obtains the audio service current operating conditions of each system.
Determination module 520 according to audio service running status, by the predetermined allocation scheme of allocation rule determination audio resource in multisystem.
Wherein, predetermined allocation rule comprises distributes audio resource based on system priority, in a preferred embodiments, as Fig. 6shown in, determination module comprises the first comparing unit 621 and the first allocation units 622.That records in the first comparing unit 621 comparing audio service operation state currently takies the system of audio resource and the system priority of audio resource request of access said system; If the system priority of audio resource request of access said system is higher, audio resource is reassigned to audio resource request of access said system by the first allocation units 622.
Such as, in the terminal device of multisystem, the predetermined current system being in foreground has the high priority using audio resource, now, and system OS 1be in backstage, system OS 2be in foreground, reading system OS 1the recorded information of audio service running status, obtains system OS 1music player currently take system audio resource, as system OS 2receive a call request, due to the system OS belonging to this call request 2currently be in foreground, therefore can determine the system OS belonging to audio resource request of access 2system priority higher, subsequently, audio resource is reassigned to the system OS belonging to this call request by terminal device 2, and Break-Up System OS 1the operation of music player.
In another preferred embodiment, this device also comprises handover module; When multisystem generation AM/BAM switches, the system priority of two systems switched is carried out exchange adjustment by handover module.
Such as, connect example, by system administration services process detection to the current system OS being in foreground 2with the current system OS being in backstage 1when there is AM/BAM switching, after switching, be in the system OS on foreground 1the System Priority rank that audio resource is used be adjusted to preferential use, and be in the system OS on backstage after switching 2the priority that audio resource is used correspondingly to turn down.
Wherein, predetermined allocation rule comprises distributes audio resource based on audio types priority, as Fig. 7shown in, determination module comprises the second comparing unit 721 and the second allocation units 722.That records in the second comparing unit 721 comparing audio service operation state currently takies the audio types of audio resource and the priority of audio resource request of access respective audio type; If the priority of audio resource request of access respective audio type is higher, audio resource is reassigned to audio resource request of access said system by the second allocation units 722.
Such as, the audio types rank that the predetermined prompt tone relevant to call request is play is high priority, and the audio types rank of music is low priority, as system OS in multisystem terminal device 1audio service running status in the current audio types taking audio resource that records be music, now system OS 2receive a call request, the audio types due to the prompt tone relevant to call request broadcasting is superior to the audio types rank of music, and therefore audio resource is reassigned to the system OS belonging to call request by terminal device 2, and shutdown system OS 1the operation of music player.
In another preferred embodiments, as Fig. 8shown in, determination module comprises determining unit 821, the 3rd comparing unit 822, the 4th comparing unit 823, adjustment unit 824 and the 3rd allocation units 825.Overall precedence relationship between determining unit 821 certainty annuity priority and audio types priority; That records in the 3rd comparing unit 822 comparing audio service operation state currently takies the audio types of audio resource and the priority of audio resource request of access respective audio type, determines the first comparative result; That records in the 4th comparing unit 823 comparing audio service operation state currently takies the system of audio resource and the system priority of audio resource request of access said system, determines the second comparative result; Adjustment unit 824 carries out priority adjustment based on overall precedence relationship to the first comparative result and the second comparative result, determines to adjust result; If adjustment result is that the priority of audio resource request of access respective audio type is higher, audio resource is reassigned to audio resource request of access said system by the 3rd allocation units 825.
Such as, predetermined allocation rule comprises the priority of priority higher than system of audio types, and the current more current system being in backstage of system being in foreground has the high priority using audio resource in predetermined multisystem, the current system being in foreground is system OS 1, the system being in backstage is OS 2, system OS 1audio service running status in the current audio types taking audio resource that records be that quarter-bell prompt tone is play, the now current system OS being in backstage 2when receiving a call request, due to the current system OS being in backstage 2the priority of audio types play of the prompt tone relevant to call request be in foreground system OS higher than current 1the priority of audio types play of quarter-bell prompt tone, and the priority of audio types is higher than the priority of system, the current system OS being in foreground 1priority higher than the current system OS being in backstage 2priority, now system OS 1audio service can by system OS 1the playing function relevant to quarter-bell prompt tone close, and the prompting mode of quarter-bell is changed to vibration prompting, now only output system OS 2the prompt tone relevant to call request play, audio resource is reassigned to the system OS belonging to audio resource request of access by terminal device 2.
Again such as, predetermined allocation rule comprises the priority of priority higher than system of audio types, the priority of the priority of the audio types that the prompt tone of being correlated with call request is play and the audio types of voice call is identical, and the current system being in foreground is system OS 1, the system being in backstage is OS 2, system OS 1audio service running status in the current audio types taking audio resource that records be voice call, the now current system OS being in backstage 2when receiving a call request, due to the current system OS being in backstage 2the priority of audio types play of the prompt tone relevant to call request and be currently in foreground system OS 1the priority of audio types of voice call identical, then can by system OS 1in In Call reduce, and by system OS 1in call audio frequency and system OS 2call request prompt tone carry out stereo process, for input call audio frequency and the mixed audio of call request prompt tone.
In an embody rule scene, in the terminal device of multisystem, the current system being in foreground is system OS 1, the system being in backstage is OS 2and OS 3, when terminal device receives the audio resource request of access from arbitrary system, the audio service current operating conditions of each system is directly obtained by the audio service of each system, the priority level of predetermined audio resource access request is followed successively by from high to low: the priority of the prompt tone playing request relevant to call request is higher than from the current priority being in the audio resource request of access of the third party application of the system on foreground, from the current priority being in the audio resource request of access of the third party application of the system on foreground higher than from the current priority being in the audio resource request of access of the third party application of the system on backstage, for from the current audio resource request of access being in the third party application of the system on backstage: from system OS 2the priority of audio resource request of access of third party application higher than from system OS 3the priority of audio resource request of access of third party application.The current system OS being in foreground 1audio service running status be the current application program taking audio resource be " QQ music player ", the now current system OS being in backstage 2with system OS 3receive a call request respectively, due to from system OS simultaneously 2the priority level of the prompt tone playing request relevant to call request higher than from system OS 3the priority level of the prompt tone playing request relevant to call request, and from system OS 2the prompt tone playing request priority level relevant to call request higher than the current system OS being in foreground 1the music priority level of " QQ music player ", audio resource is reassigned to system OS by terminal device 2, and Break-Up System OS 1the operation of " QQ music player ", delivery system OS 1shared audio resource; As system OS 2call request at the end of, if system OS 3call request also maintenance, then audio resource is reassigned to system OS by terminal device 3, as system OS 3call request at the end of, then audio resource is reassigned to system OS by terminal device 1recovery system OS 1the operation of " QQ music player "; Subsequently, the current system OS being in foreground 1with the current system OS being in backstage 3carry out AM/BAM switching, now get system OS 1audio service running status be that current application program " QQ music player " takies audio resource, be in the system OS on foreground after switching 3receive the audio resource request of access of application program " Tengxun's video ", due to from the current system OS being in foreground 3the priority level of audio resource request of access of application program " Tengxun's video " higher than from system OS 1the audio resource request of access of application program " QQ music player ", audio resource is reassigned to system OS by terminal device 3, and shutdown system OS 1" QQ music player ".Those skilled in the art of the present technique are appreciated that the one or more equipment that the present invention includes and relate to for performing in operation described in the application.These equipment for required object and specialized designs and manufacture, or also can comprise the known device in multi-purpose computer.These equipment have storage computer program within it, and these computer programs optionally activate or reconstruct.Such computer program can be stored in equipment (such as, computing machine) in computer-readable recording medium or be stored in and be suitable for store electrons instruction and be coupled in the medium of any type of bus respectively, described computer-readable medium includes but not limited to that the dish of any type (comprises floppy disk, hard disk, CD, CD-ROM, and magneto-optic disk), ROM (Read-OnlyMemory, ROM (read-only memory)), RAM (RandomAccessMemory, storer immediately), EPROM (ErasableProgrammableRead-OnlyMemory, Erarable Programmable Read only Memory), EEPROM (ElectricallyErasableProgrammableRead-OnlyMemory, EEPROM (Electrically Erasable Programmable Read Only Memo)), flash memory, magnetic card or light card.Namely, computer-readable recording medium comprises and being stored or any medium of transmission information with the form that can read by equipment (such as, computing machine).
Those skilled in the art of the present technique are appreciated that and can realize these structures with computer program instructions figureand/or frame figureand/or stream in figureeach frame and these structures figureand/or frame figureand/or stream figurein the combination of frame.Those skilled in the art of the present technique are appreciated that, the processor that these computer program instructions can be supplied to multi-purpose computer, special purpose computer or other programmable data disposal routes realizes, thus performs structure disclosed by the invention by the processor of computing machine or other programmable data disposal routes figureand/or frame figureand/or stream figureframe or multiple frame in the scheme of specifying.
Those skilled in the art of the present technique are appreciated that various operations, method, the step in flow process, measure, the scheme discussed in the present invention can be replaced, changes, combines or delete.Further, there is various operations, method, other steps in flow process, measure, the scheme discussed in the present invention also can be replaced, change, reset, decompose, combine or delete.Further, of the prior art have also can be replaced with the step in operation various disclosed in the present invention, method, flow process, measure, scheme, changed, reset, decomposed, combined or deleted.
The above is only some embodiments of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. distribute a method for audio resource in multisystem, it is characterized in that, comprising:
When receiving the audio resource request of access from arbitrary system, obtain the audio service running status of each system;
According to described audio service running status, by the predetermined allocation scheme of allocation rule determination audio resource in described multisystem.
2. in multisystem according to claim 1, distribute the method for audio resource, it is characterized in that, described predetermined allocation rule comprises distributes audio resource based on system priority, wherein, according to described audio service running status, by the predetermined allocation scheme of allocation rule determination audio resource in described multisystem, comprising:
That records in more described audio service running status currently takies the system of audio resource and the system priority of described audio resource request of access said system;
If the system priority of described audio resource request of access said system is higher, described audio resource is reassigned to described audio resource request of access said system.
3. distribute the method for audio resource in multisystem according to claim 2, it is characterized in that, the method also comprises:
When described multisystem generation AM/BAM switches, the system priority of two systems switched carries out exchange adjustment.
4. in multisystem according to claim 1, distribute the method for audio resource, it is characterized in that, described predetermined allocation rule comprises distributes audio resource based on audio types priority, wherein, according to described audio service running status, by the predetermined allocation scheme of allocation rule determination audio resource in described multisystem, comprising:
That records in more described audio service running status currently takies the audio types of audio resource and the priority of described audio resource request of access respective audio type;
If the priority of described audio resource request of access respective audio type is higher, described audio resource is reassigned to described audio resource request of access said system.
5. distribute the method for audio resource in the multisystem according to any one of claim 2-4, it is characterized in that, according to described audio service running status, by the predetermined allocation scheme of allocation rule determination audio resource in described multisystem, comprising:
Overall precedence relationship between certainty annuity priority and audio types priority; That records in more described audio service running status currently takies the audio types of audio resource and the priority of described audio resource request of access respective audio type, determines the first comparative result;
That records in more described audio service running status currently takies the system of audio resource and the system priority of described audio resource request of access said system, determines the second comparative result;
Based on described overall precedence relationship, priority adjustment is carried out to described first comparative result and the second comparative result, determine to adjust result;
If described adjustment result is that the priority of described audio resource request of access respective audio type is higher, described audio resource is reassigned to described audio resource request of access said system.
6. distribute a device for audio resource in multisystem, it is characterized in that, comprising:
Acquisition module, for when the audio resource request of access received from arbitrary system, obtains the audio service running status of each system;
Determination module, for according to described audio service running status, by the predetermined allocation scheme of allocation rule determination audio resource in described multisystem.
7. distribute the device of audio resource in multisystem according to claim 6, it is characterized in that, described predetermined allocation rule comprises distributes audio resource based on system priority, and wherein, described determination module specifically comprises:
First comparing unit, currently takies the system of audio resource and the system priority of described audio resource request of access said system for what record in more described audio service running status;
First allocation units, if higher for the system priority of described audio resource request of access said system, reassign to described audio resource request of access said system by described audio resource.
8. distribute the device of audio resource in multisystem according to claim 7, it is characterized in that, this device also comprises:
Adjusting module, when switching for described multisystem generation AM/BAM, the system priority of two systems switched carries out exchange adjustment.
9. distribute the device of audio resource in multisystem according to claim 6, it is characterized in that, described predetermined allocation rule comprises distributes audio resource based on system priority, and wherein, described determination module specifically comprises:
Second comparing unit, currently takies the audio types of audio resource and the priority of described audio resource request of access respective audio type for what record in more described audio service running status;
Second allocation units, if higher for the priority of described audio resource request of access respective audio type, reassign to described audio resource request of access said system by described audio resource.
10. distribute the device of audio resource in the multisystem according to any one of claim 7-9, it is characterized in that, described determination module specifically comprises:
Determining unit, for the overall precedence relationship between certainty annuity priority and audio types priority;
3rd comparing unit, currently takies the audio types of audio resource and the priority of described audio resource request of access respective audio type for what record in more described audio service running status, determines the first comparative result;
4th comparing unit, currently takies the system of audio resource and the system priority of described audio resource request of access said system for what record in more described audio service running status, determines the second comparative result;
Adjustment unit, carries out priority adjustment based on described overall precedence relationship to described first comparative result and the second comparative result, determines to adjust result;
3rd allocation units, if be that the priority of described audio resource request of access respective audio type is higher for described adjustment result, reassign to described audio resource request of access said system by described audio resource.
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 true CN105550037A (en) 2016-05-04
CN105550037B 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)

Cited By (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
CN106507194A (en) * 2016-11-15 2017-03-15 四川长虹电器股份有限公司 A kind of Android intelligent television scene management method
CN106776065A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Method and device for using Mtp function by multiple systems
CN106851535A (en) * 2017-01-13 2017-06-13 北京元心科技有限公司 Method and device for sharing Bluetooth by multiple systems
CN109857530A (en) * 2019-01-21 2019-06-07 湖北亿咖通科技有限公司 A kind of application request dispatching method and device
WO2019127113A1 (en) * 2017-12-27 2019-07-04 深圳前海达闼云端智能科技有限公司 Audio competition playing device and method therefor and mobile terminal
CN110333961A (en) * 2019-09-04 2019-10-15 宁波均胜普瑞智能车联有限公司 Multisystem audio frequency controller equipment, method and computer readable storage medium
CN110968350A (en) * 2018-09-30 2020-04-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
WO2020113390A1 (en) * 2018-12-03 2020-06-11 深圳市欢太科技有限公司 Alarm clock playback method and apparatus, and electronic device
CN113039517A (en) * 2018-11-26 2021-06-25 深圳市欢太科技有限公司 Audio resource calling method and device and electronic equipment
WO2022067564A1 (en) * 2020-09-29 2022-04-07 华为技术有限公司 Method and apparatus for responding to user access request, and storage device
WO2023001054A1 (en) * 2021-07-22 2023-01-26 Oppo广东移动通信有限公司 Priority configuration method and apparatus for audio playing, and device and storage medium

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

Cited By (18)

* 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
CN106507194A (en) * 2016-11-15 2017-03-15 四川长虹电器股份有限公司 A kind of Android intelligent television scene management method
CN106507194B (en) * 2016-11-15 2019-03-22 四川长虹电器股份有限公司 A kind of Android intelligent television scene management method
CN106776065A (en) * 2016-11-29 2017-05-31 北京元心科技有限公司 Method and device for using Mtp function by multiple systems
CN106851535A (en) * 2017-01-13 2017-06-13 北京元心科技有限公司 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
CN110968350A (en) * 2018-09-30 2020-04-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
CN113039517A (en) * 2018-11-26 2021-06-25 深圳市欢太科技有限公司 Audio resource calling method and device and electronic equipment
WO2020113390A1 (en) * 2018-12-03 2020-06-11 深圳市欢太科技有限公司 Alarm clock playback method and apparatus, and electronic device
CN113170014A (en) * 2018-12-03 2021-07-23 深圳市欢太科技有限公司 Alarm clock playing method and device and electronic equipment
CN113170014B (en) * 2018-12-03 2022-07-26 深圳市欢太科技有限公司 Alarm clock playing method and device and electronic equipment
CN109857530A (en) * 2019-01-21 2019-06-07 湖北亿咖通科技有限公司 A kind of application request dispatching method and 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
CN110333961A (en) * 2019-09-04 2019-10-15 宁波均胜普瑞智能车联有限公司 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
WO2023001054A1 (en) * 2021-07-22 2023-01-26 Oppo广东移动通信有限公司 Priority configuration method and apparatus for audio playing, and device and storage medium

Also Published As

Publication number Publication date
CN105550037B (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN105550037A (en) Method and device for allocating audio resources in multiple systems
US10334118B2 (en) Method and system for providing video multimedia ringtone
CN104090766A (en) Sound effect switching method and system for mobile terminal
CN105204816A (en) Method and device for controlling audios in multisystem
CN106534935A (en) Method and device for controlling hardware resource conflict
CN105916002A (en) Player multi-window displaying system and method of realizing hard and soft decoding switching
CN104239151A (en) Resource management method and system
CN108132769A (en) A kind of audio data play method and dual-screen mobile terminal
CN105096981A (en) Multipath sound playing method, multipath sound playing device and multipath sound playing system
CN106101750A (en) Reflect front advertisement playing control system and control method thereof
CN106878384B (en) Data forwarding method, its device, bluetooth equipment and audio frequency transmission method
CN113986186A (en) Audio switching system, method, electronic equipment and storage medium
CN102354278A (en) Method and equipment for processing audio data
CN106328149B (en) A kind of mixed audio processing method and relevant device
CN113411703B (en) Audio playing method, earphone box, wireless earphone and earphone suite
KR101627273B1 (en) Broadcast receiver and Method for managementing memory
CN101990074A (en) Television with audio playing function
CN112218140A (en) Video synchronous playing method, device, system and storage medium
WO2023202152A1 (en) Audio redirection method and apparatus, and device and storage medium
CN113301350B (en) Distributed audio and video task management and distribution system and implementation method
CN106131355A (en) A kind of sound playing method and device
US9374155B2 (en) Apparatus and method for reducing TDMA noise in terminal
CN109818979A (en) A kind of method, apparatus that realizing audio return, equipment and storage medium
JPH088907A (en) On-demand video server
CN104092508A (en) Intelligent broadcasting system

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
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.

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