WO2020118495A1 - Procédé et dispositif d'attribution de ressources audio et appareil électronique - Google Patents

Procédé et dispositif d'attribution de ressources audio et appareil électronique Download PDF

Info

Publication number
WO2020118495A1
WO2020118495A1 PCT/CN2018/120137 CN2018120137W WO2020118495A1 WO 2020118495 A1 WO2020118495 A1 WO 2020118495A1 CN 2018120137 W CN2018120137 W CN 2018120137W WO 2020118495 A1 WO2020118495 A1 WO 2020118495A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
audio
priority
audio resource
application program
Prior art date
Application number
PCT/CN2018/120137
Other languages
English (en)
Chinese (zh)
Inventor
李亚军
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2018/120137 priority Critical patent/WO2020118495A1/fr
Priority to CN201880098688.8A priority patent/CN115668123A/zh
Publication of WO2020118495A1 publication Critical patent/WO2020118495A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output

Definitions

  • This application relates to the field of information technology, and in particular, to an audio resource allocation method, device, electronic device, and computer-readable storage medium.
  • An embodiment of the present application provides an audio resource allocation method, including:
  • a split-screen mode receiving a request message for the audio resource of a second application, where the first application is on a first split-screen and the second application is on a second split-screen;
  • the first priority is less than the second priority, release the audio resources occupied by the first application, and allocate the audio resources to the second application, so that the first Two applications use the audio resources to play audio.
  • An embodiment of the present application provides an audio resource allocation device, including:
  • a first receiving module configured to receive a request message of an audio resource of the first application program
  • An audio resource allocation module configured to allocate the audio resource to the first application program, so that the first application program uses the audio resource to play audio
  • a second receiving module configured to receive a request message for the audio resource of a second application in a split-screen mode, wherein the first application is in a first split-screen and the second application is in a second split Screen;
  • An obtaining module configured to obtain the first priority of the first application and the second priority of the second application
  • a processing module configured to send an audio resource request failure response to the second application if the first priority is greater than or equal to the second priority
  • the first priority is less than the second priority, release the audio resources occupied by the first application, and allocate the audio resources to the second application, so that the first Two applications use the audio resources to play audio.
  • An embodiment of the present application further provides an electronic device, including a memory and a processor, and the memory stores a computer program, wherein when the computer program is executed by the processor, the processor is caused to execute:
  • a split-screen mode receiving a request message for the audio resource of a second application, where the first application is on a first split-screen and the second application is on a second split-screen;
  • the first priority is less than the second priority, release the audio resources occupied by the first application, and allocate the audio resources to the second application, so that the first Two applications use the audio resources to play audio.
  • Embodiments of the present application also provide a computer non-volatile readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of processing the application program as described above are realized.
  • the electronic device and the computer-readable storage medium receive the request message of the audio resource of the first application program; allocate the audio resource to the first application program, so that the first application program uses the The audio resource plays audio; in a split-screen mode, receiving a request message for the audio resource of a second application, where the first application is on a first split-screen and the second application is on a second split-screen ; Obtain the first priority of the first application and the second priority of the second application; allocate the audio resources according to the size of the first priority and the second priority, so that the first The application program or the second application program uses the audio resource to play audio, which solves the problem of audio resource conflict in the split-screen mode and improves the user experience.
  • FIG. 1 is a flowchart of an audio resource allocation method in an embodiment
  • FIG. 2 is a flowchart of adjusting application priority in an embodiment
  • FIG. 3 is a flowchart of an audio resource allocation method in another embodiment
  • FIG. 4 is a schematic structural diagram of an audio resource allocation device according to an embodiment
  • FIG. 5 is a schematic diagram of the internal structure of an electronic device in an embodiment
  • FIG. 6 is a block diagram of a partial structure of an electronic device related to a computer device provided by an embodiment of the present application.
  • first”, “second”, etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element.
  • the first acquisition module may be referred to as the second acquisition module, and similarly, the second acquisition module may be referred to as the first acquisition module. Both the first acquisition module and the second acquisition module are acquisition modules, but they are not the same acquisition module.
  • an embodiment of the present application provides an audio resource allocation method, which is applied to an electronic device.
  • the method includes:
  • the electronic device may be any electronic device such as a mobile terminal, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, a wearable device, and the like.
  • a mobile terminal such as a mobile terminal, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, a wearable device, and the like.
  • the audio resource request message includes audio resource request related data.
  • the data related to the audio resource request includes but is not limited to audio data and audio type.
  • the audio type includes but is not limited to music, reminder sound, alarm sound, system sound and so on.
  • S120 Assign the audio resource to the first application program, so that the first application program uses the audio resource to play audio;
  • the electronic device When receiving the audio resource request message sent by the application program, the electronic device allocates the corresponding audio resource to the application program according to the audio resource request message, so that the application program can use the audio resource to play audio.
  • the electronic device When receiving the split screen instruction, the electronic device controls the electronic device to display at least two display areas, and each display area corresponds to at least one application program.
  • the electronic device includes a first split screen and a second split screen, such as a main screen and a sub-screen
  • the size and location of the two screens are not limited.
  • the main screen is larger and is located on the front of the electronic device, while the secondary screen is smaller and is located on the back of the electronic device.
  • the first split screen may be either the main screen or the sub-screen.
  • the electronic device when the electronic device is in a portrait state, at least two display areas are sequentially arranged up and down along the length of the electronic device, for example: when the electronic device is in a portrait state and two display areas are displayed, One display area is displayed in the upper half of the electronic device, and the other display area is displayed in the lower half of the electronic device; when the electronic device is in a landscape state, the at least two display areas are sequentially along the length of the electronic device The directions are arranged side by side. For example, when the electronic device is in a landscape state and two display areas are displayed, one of the display areas is displayed on the left half of the electronic device, and the other display area is displayed on the right half of the electronic device.
  • the first priority of the first application and the second application when receiving a request message for the same audio resource from the second application in split-screen mode, the first priority of the first application and the second application’s
  • the second priority is to allocate the audio resource according to the level of the first priority and the second priority.
  • the method before acquiring the first priority of the first application and the second priority of the second application, the method further includes:
  • the priority of all application programs in the electronic device is set according to the use frequency or duration of application programs in the electronic device.
  • a corresponding priority may be preset for the audio corresponding to each application program.
  • the priority may be preset according to the frequency or duration of use of the application by the user. Specifically, an application program with a higher usage frequency corresponds to a higher priority, and an application program with a longer usage time corresponds to a higher priority.
  • the priority may be represented by the values 1, 2, 3... It can be understood that the above numerical value to identify the priority of the application is only used as a way to identify the priority of the application in the embodiments of the present application, rather than a limitation of the priority identification method. In fact, The priority of the application can be identified in other ways. For example, the characters A, B, C, D, E, etc., or the first, second, third, fourth, fifth, etc. are used to identify the priority of the application. The embodiment of the present application does not specifically limit the way of identifying the priority of the application.
  • an audio resource request failure response can be sent to the second application program through a message transmission mechanism at the application layer of the electronic device. If there are multiple second applications, the response to the failure of the frequency resource request may be sent to the second application at the same time.
  • the first priority is less than the second priority, release the audio resources occupied by the first application, and allocate the audio resources to the second application, so that all The second application uses the audio resource to play audio.
  • each application program is allocated a process for playing audio corresponding to the application program on the electronic device.
  • the electronic device includes two application programs, namely application C and application D
  • the electronic device will allocate a process X for application C to play the audio corresponding to application C, and an application D for playing application D Corresponding audio process Y.
  • only one process for playing audio can be running on the electronic device.
  • the application with the highest priority among the multiple applications is selected according to the order of the corresponding priorities of the respective applications from high to low , And assign a process for the application to play the audio corresponding to the application, so that the application can play the audio.
  • the present application by receiving a request message of an audio resource of a first application; allocating the audio resource to the first application, so that the first application uses the audio resource to play audio;
  • receiving a request message for the audio resource of a second application where the first application is on a first split-screen and the second application is on a second split-screen; acquiring the first application A first priority of the program and a second priority of the second application; if the first priority is greater than or equal to the second priority, send an audio resource request failure response to the second application ; If the first priority is less than the second priority, release the audio resources occupied by the first application, and allocate the audio resources to the second application, so that the The second application uses the audio resources to play audio, solves the problem of audio resource conflicts in the split screen mode, and improves the user experience.
  • the second application in the split-screen mode receives a request message for the same audio resource, and it can detect whether the audio resource occupied by the first application is valid. If valid, send an audio resource request failure response to the second application; if invalid, allocate the audio resource to the second application, so that the second application uses the audio resource to play audio.
  • the audio resources occupied by the first application program are analyzed within a preset time period.
  • the audio data output by the first application within a preset time period may be acquired, and the audio data may be analyzed to determine whether the audio data is invalid data.
  • the audio data is all invalid data or the proportion of invalid data is greater than a preset threshold, it is determined that the audio resource occupied by the first application is invalid, and the audio resource is allocated to the second application.
  • the invalid data in this embodiment may be audio data with a volume of 0.
  • an audio resource request failure response is sent to the second application; if it is invalid, the audio resource is allocated to the second application , So that the second application uses the audio resource to play audio, can effectively use the audio resource, and improve the utilization rate of the audio resource.
  • an audio resource request failure response is sent to the second application.
  • the audio resource allocation problem cannot be solved by the priority. It may be considered that the application program currently playing audio does not have the highest priority, the audio resource occupied by the application program cannot be preempted, and an audio resource request failure response is sent to the second application program.
  • the method can also adjust the priority of the application, including:
  • the request messages for the audio resources from the second application and the fourth application are received at 10:00 and 10:01, respectively, by comparing the first application The priority of the program, the second application, and the fourth application is obtained. If the priority of the first application is higher than the priority of the second application and the fourth application, an audio resource request failure response is sent to the first The second application and the fourth application, at this time, the second application and the fourth application are in a waiting process. Obtain the waiting time of the second application and the fourth application at 10:03, which are 3 minutes and 2 minutes respectively. If the preset threshold is 1 minute, the waiting time of the second application and the fourth application both exceed A preset threshold is used to increase the priority of the second application and the fourth application.
  • different increase ranges can be set, and different priorities correspond to different increase ranges. The higher the priority, the greater the corresponding increase range. For example, if the priority of the second application is higher than that of the fourth application, then the increase of the second application is greater than the increase of the fourth application.
  • the preset threshold may be 1 minute, 3 minutes, 5 minutes, etc.
  • the preset threshold of 1 minute is only an example in the embodiments of the present application, and is not to be understood as a Set threshold limits. In fact, the preset threshold may be determined by those skilled in the art according to actual needs, and the embodiment of the present application does not limit the preset threshold here.
  • FIG. 3 is a flowchart of an audio resource allocation method in another embodiment. As shown in FIG. 3, the method includes:
  • the second application in split-screen mode receives a request message for the same audio resource, and the electronic device may display a prompt message in the form of voice output, a pop-up dialog box, etc. , Used to prompt the user to process the second application.
  • a dialog box pops up, and the dialog box may include the following information: whether The audio resource is allocated to the second application and the corresponding yes and no buttons, and the user chooses to process the second application according to the actual situation. If it is detected that the user clicks the Yes button, the audio resource is allocated to the second application so that the second application uses the audio resource to play audio; if it is detected that the user clicks the No button, an audio resource request failure response is sent to the The second application.
  • the user is prompted to process the second application by displaying a prompt message; when a user's selection operation instruction for the prompt message is received, the audio resource can be allocated according to the selection operation instruction, and the audio resource can be allocated Reasonable allocation solves the problem of conflicting audio resources in split-screen mode and improves the user experience.
  • the first split screen further includes a third application program
  • an audio resource request failure response is sent to the third application program.
  • the first split screen includes a first application and a third application.
  • the electronic device receives a request message for the audio resource of the third application, then the The electronic device sends an audio resource request failure response to the third application program, thereby ensuring that the first application program normally plays audio.
  • the audio resource is locked to keep the audio resource occupied.
  • the first application uses audio resources to play audio
  • the audio resource is locked so that the audio resource still maintains the occupied state of the first application, Therefore, it is ensured that the audio resource is not preempted when exiting the split-screen mode, so that the first application program normally plays audio.
  • the audio resource when the electronic device exits the split screen mode, the audio resource is locked to keep the audio resource occupied, thereby improving the stability of audio output and the user experience.
  • an audio resource allocation device 40 which includes:
  • the first receiving module 41 is configured to receive a request message of the audio resource of the first application program
  • the device 40 can be applied to electronic equipment, where the electronic equipment can be any electronic device such as a mobile terminal, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, a wearable device, etc. equipment.
  • the electronic equipment can be any electronic device such as a mobile terminal, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, a wearable device, etc. equipment.
  • the audio resource request message includes audio resource request related data.
  • the data related to the audio resource request includes but is not limited to audio data and audio type.
  • the audio type includes but is not limited to music, reminder sound, alarm sound, system sound and so on.
  • the audio resource allocation module 42 is configured to allocate the audio resource to the first application program, so that the first application program uses the audio resource to play audio;
  • the audio resource allocation module 42 allocates the corresponding audio resource to the application according to the audio resource request message, so that the application can use the audio resource Play audio.
  • the second receiving module 43 is configured to receive a request message of the audio resource of a second application in a split-screen mode, wherein the first application is in a first split-screen and the second application is in a second Split Screen;
  • the electronic device When receiving the split screen instruction, the electronic device controls the electronic device to display at least two display areas, and each display area corresponds to at least one application program.
  • the electronic device includes a first split screen and a second split screen, such as a main screen and a sub-screen
  • the size and location of the two screens are not limited.
  • the main screen is larger and is located on the front of the electronic device, while the secondary screen is smaller and is located on the back of the electronic device.
  • the first split screen may be either the main screen or the sub-screen.
  • the electronic device when the electronic device is in a portrait state, at least two display areas are sequentially arranged up and down along the length of the electronic device, for example: when the electronic device is in a portrait state and two display areas are displayed, One display area is displayed in the upper half of the electronic device, and the other display area is displayed in the lower half of the electronic device; when the electronic device is in a landscape state, the at least two display areas are sequentially along the length of the electronic device The directions are arranged side by side. For example, when the electronic device is in a landscape state and two display areas are displayed, one of the display areas is displayed on the left half of the electronic device, and the other display area is displayed on the right half of the electronic device.
  • An obtaining module 44 for obtaining the first priority of the first application and the second priority of the second application
  • the obtaining module 44 obtains the first priority of the first application Level and the second priority of the second application, the audio resource is allocated according to the level of the first priority and the second priority.
  • the apparatus 40 further includes a priority setting module (not shown in the figure), which is specifically configured to set all application programs in the electronic device according to the use frequency or duration of the application programs in the electronic device priority.
  • a priority setting module (not shown in the figure), which is specifically configured to set all application programs in the electronic device according to the use frequency or duration of the application programs in the electronic device priority.
  • the priority setting module may preset a corresponding priority level for the audio corresponding to each application program.
  • the priority may be preset according to the frequency or duration of use of the application by the user. Specifically, an application program with a higher usage frequency corresponds to a higher priority, and an application program with a longer usage time corresponds to a higher priority.
  • the priority may be represented by the values 1, 2, 3... It can be understood that the above-mentioned numerical value to identify the priority of the application is only a way of identifying the priority of the application in the embodiments of the present application, rather than a limitation of the priority identification method. In fact, The priority of the application can be identified in other ways. For example, the characters A, B, C, D, E, etc., or the first, second, third, fourth, fifth, etc. are used to identify the priority of the application. The embodiment of the present application does not specifically limit the way of identifying the priority of the application.
  • the processing module 45 is configured to send an audio resource request failure response to the second application if the first priority is greater than or equal to the second priority;
  • an audio resource request failure response can be sent to the second application program through a message transmission mechanism at the application layer of the electronic device. If there are multiple second applications, the response to the failure of the frequency resource request may be sent to the second application at the same time.
  • the first priority is less than the second priority, release the audio resources occupied by the first application, and allocate the audio resources to the second application, so that the first Two applications use the audio resources to play audio.
  • each application program is allocated a process for playing audio corresponding to the application program on the electronic device.
  • the electronic device includes two applications, namely application C and application D
  • the electronic device will allocate a process X for application C to play the audio corresponding to application C, and an application D for playing application D Corresponding audio process Y.
  • only one process for playing audio can be running on the electronic device.
  • the application with the highest priority among the multiple applications is selected according to the order of the priority of the corresponding applications from high to low , And assign a process for playing audio corresponding to the application to the application so that the application can play audio.
  • the first application module 41 receives the audio resource request message of the first application program; the audio resource allocation module 42 allocates the audio resource to the first application program to enable the first application The program uses the audio resource to play audio; the second receiving module 43 receives the request message of the audio resource of the second application program in the split-screen mode, wherein the first application program is on the first split-screen, the first Two applications are in the second split screen; the obtaining module 44 obtains the first priority of the first application and the second priority of the second application; the processing module 45 according to the first priority and the second priority The size of the audio resource is allocated so that the first application or the second application uses the audio resource to play audio, which solves the problem of audio resource conflict in the split-screen mode and improves the user experience.
  • the device 40 further includes an analysis module (not shown in the figure), which is specifically configured to: when the first application plays audio, receive the second application in split-screen mode on the same audio resource The request message, the analysis module may analyze whether the audio resource occupied by the first application is valid. If valid, send an audio resource request failure response to the second application; if invalid, allocate the audio resource to the second application, so that the second application uses the audio resource to play audio.
  • an analysis module (not shown in the figure), which is specifically configured to: when the first application plays audio, receive the second application in split-screen mode on the same audio resource The request message, the analysis module may analyze whether the audio resource occupied by the first application is valid. If valid, send an audio resource request failure response to the second application; if invalid, allocate the audio resource to the second application, so that the second application uses the audio resource to play audio.
  • the analysis module analyzes the audio resources occupied by the first application within a preset time period.
  • the audio data output by the first application within a preset time period may be acquired, and the audio data may be analyzed to determine whether the audio data is invalid data.
  • the audio data is all invalid data or the proportion of invalid data is greater than a preset threshold, it is determined that the audio resource occupied by the first application is invalid, and the audio resource is allocated to the second application.
  • the invalid data in this embodiment may be audio data with a volume of 0.
  • the analysis module analyzes whether the audio resource occupied by the first application is valid. If it is valid, an audio resource request failure response is sent to the second application; if it is invalid, the audio resource is allocated to the second The application program, so that the second application program uses the audio resource to play audio, can effectively use the audio resource, and improve the utilization rate of the audio resource.
  • the acquisition module 44 if it does not acquire the first priority of the first application or the second priority of the second application, it sends an audio resource request failure response to the second application program.
  • the audio resource allocation problem cannot be solved by the priority. It may be considered that the application program currently playing audio is the highest priority, the audio resource occupied by the application program cannot be preempted, and a response to the failure of sending an audio resource request is sent to the second application program.
  • the device 40 further includes a priority adjustment module (not shown in the figure), which is specifically used for:
  • the waiting time is the time that the application program waits after sending the audio resource request message
  • the priority of the application program is increased.
  • the request messages for the audio resources from the second application and the fourth application are received at 10:00 and 10:01, respectively, by comparing the first application The priority of the program, the second application, and the fourth application is obtained. If the priority of the first application is higher than the priority of the second application and the fourth application, an audio resource request failure response is sent to the first The second application and the fourth application, at this time, the second application and the fourth application are in a waiting process. Obtain the waiting time of the second application and the fourth application at 10:03, which are 3 minutes and 2 minutes respectively. If the preset threshold is 1 minute, the waiting time of the second application and the fourth application both exceed A preset threshold is used to increase the priority of the second application and the fourth application.
  • different increase ranges can be set, and different priorities correspond to different increase ranges. The higher the priority, the greater the corresponding increase range. For example, if the priority of the second application is higher than that of the fourth application, the increase of the second application is greater than the increase of the fourth application.
  • the preset threshold may be 1 minute, 3 minutes, 5 minutes, etc.
  • the preset threshold of 1 minute is only an example in the embodiments of the present application, and is not to be understood as a Set threshold limits. In fact, the preset threshold may be determined by those skilled in the art according to actual needs. The embodiments of the present application do not limit the preset threshold here.
  • the device 40 further includes a prompt module (not shown in the figure), which is specifically used for:
  • the prompt message is used to prompt the user to process the second application program
  • the audio resource is allocated according to the selection operation instruction.
  • the second application in split-screen mode receives a request message for the same audio resource
  • the prompt module may display the prompt message in the form of voice output, pop-up dialog, etc. , Used to prompt the user to process the second application.
  • the prompting module prompts the dialog box to pop up
  • the box may include the following information: whether to allocate audio resources to the second application and corresponding yes and no buttons, and the user selects to process the second application according to actual conditions. If it is detected that the user clicks the Yes button, the audio resource is allocated to the second application so that the second application uses the audio resource to play audio; if it is detected that the user clicks the No button, an audio resource request failure response is sent to the The second application.
  • the prompt module prompts the user to process the second application by displaying a prompt message; when receiving the user's selection operation instruction for the prompt message, the audio resource is allocated according to the selection operation instruction.
  • the reasonable allocation of audio resources solves the problem of conflicting audio resources in split-screen mode and improves the user experience.
  • the first split screen further includes a third application program
  • an audio resource request failure response is sent to the third application program.
  • the first split screen includes a first application and a third application.
  • the electronic device receives a request message for the audio resource of the third application, Then, the electronic device sends an audio resource request failure response to the third application program, thereby ensuring that the first application program normally plays audio.
  • the audio resource when the electronic device exits the split-screen mode, the audio resource is locked so that the audio resource remains occupied.
  • the first application uses audio resources to play audio
  • the audio resource is locked so that the audio resource still maintains the occupied state of the first application, Therefore, it is ensured that the audio resource is not preempted when exiting the split-screen mode, so that the first application program normally plays audio.
  • the audio resource when the electronic device exits the split screen mode, the audio resource is locked to keep the audio resource occupied, thereby improving the stability of audio output and the user experience.
  • the electronic device includes a processor connected through a system bus, a non-volatile storage medium, an internal memory and a network interface, a sound collection device, a speaker, a display screen, and an input device.
  • the non-volatile storage medium of the terminal stores an operating system and computer-readable instructions.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the internal memory in the electronic device provides an environment for the execution of computer-readable instructions in the non-volatile storage medium.
  • the display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen, etc.
  • the input device may be a touch layer covered on the display screen, or a button, a trackball or a touch pad provided on the casing of the electronic device, or it may be External keyboard, touchpad or mouse, etc.
  • the electronic device may be a mobile phone, a tablet computer, a personal digital assistant or a wearable device.
  • FIG. 5 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied.
  • the specific electronic device may It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement.
  • the above-mentioned audio resource allocation method may specifically be:
  • a split-screen mode receiving a request message for the audio resource of a second application, where the first application is on a first split-screen and the second application is on a second split-screen;
  • the first priority is less than the second priority, release the audio resources occupied by the first application, and allocate the audio resources to the second application, so that the first Two applications use the audio resources to play audio.
  • the embodiments of the present application also provide a computer non-volatile readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of processing the application program as described above are realized.
  • An embodiment of the present invention also provides a computer device. As shown in FIG. 6, for convenience of description, only parts related to the embodiments of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present invention.
  • the computer device may be any terminal device including an electronic device, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, a wearable device, etc.
  • the computer device is an electronic device For example:
  • the electronic device includes: a radio frequency (Radio Frequency) circuit 610, a memory 620, an input unit 630, a display unit 640, a sensor 650, an audio circuit 660, a wireless fidelity (WiFi) module 670, a processor 680, and power supply 690 and other components.
  • a radio frequency (Radio Frequency) circuit 610 the electronic device includes: a radio frequency (Radio Frequency) circuit 610, a memory 620, an input unit 630, a display unit 640, a sensor 650, an audio circuit 660, a wireless fidelity (WiFi) module 670, a processor 680, and power supply 690 and other components.
  • WiFi wireless fidelity
  • the RF circuit 610 can be used to receive and send signals during sending and receiving information or during a call. It can receive the downlink information of the base station and process it to the processor 680; it can also send the uplink data to the base station.
  • RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, low noise amplifier (Low Noise Amplifier, LNA), duplexer, and so on.
  • the RF circuit 610 can also communicate with other devices through a wireless communication network.
  • the above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Message Service (SMS), etc.
  • GSM Global System of Mobile
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Message Service
  • the memory 620 may be used to store software programs and modules.
  • the processor 680 runs the software programs and modules stored in the memory 620 to execute various functional applications and data processing of the electronic device.
  • the memory 620 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system and at least one function-required application program (such as a sound playback function application program, an image playback function application program, etc.), etc.;
  • the data storage area can store data (such as audio data, address book, etc.) created according to the use of electronic devices.
  • the memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 630 may be used to receive input numeric or character information, and generate key signal input related to user settings and function control of the electronic device 600.
  • the input unit 630 may include a touch panel 631 and other input devices 632.
  • the touch panel 631 also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc. on or near the touch panel 631 Operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 631 may include a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates To the processor 680, and can receive the command sent by the processor 680 and execute it.
  • the touch panel 631 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 630 may also include other input devices 632.
  • the other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.).
  • the display unit 640 may be used to display information input by the user or information provided to the user and various menus of the electronic device.
  • the display unit 640 may include a display panel 641.
  • the display panel 641 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • the touch panel 631 may cover the display panel 641, and when the touch panel 631 detects a touch operation on or near it, it is transmitted to the processor 680 to determine the type of touch event, and then the processor 680 according to The type of touch event provides corresponding visual output on the display panel 641.
  • the touch panel 631 and the display panel 641 are implemented as two independent components to realize the input and input functions of the electronic device, in some embodiments, the touch panel 631 and the display panel 641 may be integrated And realize the input and output functions of electronic equipment.
  • the electronic device 600 may further include at least one sensor 650, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 641 according to the brightness of the ambient light, and the proximity sensor may close the display panel 641 and the electronic device when moving to the ear /Or backlight.
  • the motion sensor may include an acceleration sensor. The acceleration sensor can detect the magnitude of acceleration in various directions, and can detect the magnitude and direction of gravity when at rest.
  • electronic devices can be used for applications that recognize the posture of electronic devices (such as horizontal and vertical screen switching), and vibration recognition related functions ( For example, pedometer, percussion, etc.; in addition, electronic devices can also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc.
  • sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc.
  • the audio circuit 660, the speaker 661, and the microphone 662 may provide an audio interface between the user and the electronic device.
  • the audio circuit 660 can transmit the converted electrical signal of the received audio data to the speaker 661, which converts the speaker 661 into a sound signal output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 660 After receiving, it is converted into audio data, and then processed by the audio data output processor 680, and then sent to another electronic device via the RF circuit 610, or the audio data is output to the memory 620 for subsequent processing.
  • WiFi is a short-range wireless transmission technology. Electronic devices can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 670. It provides users with wireless broadband Internet access.
  • FIG. 6 shows the WiFi module 670, it can be understood that it is not a necessary component of the electronic device 600, and may be omitted as needed.
  • the processor 680 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in the memory 620, and calling the data stored in the memory 620 , Perform various functions of electronic devices and process data, so as to monitor the electronic devices as a whole.
  • the processor 680 may include one or more processing units.
  • the processor 680 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, and the like; the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 680.
  • the electronic device 600 further includes a power supply 690 (such as a battery) that supplies power to various components.
  • a power supply 690 (such as a battery) that supplies power to various components.
  • the power supply can be logically connected to the processor 680 through the power management system, so as to implement functions such as charging, discharging, and power management through the power management system. .
  • the electronic device 600 may further include a camera, a Bluetooth module, and the like.
  • the processor 680 included in the computer device implements the methods of the foregoing embodiments when executing the computer program stored in the memory.
  • the program may be stored in a non-volatile computer-readable storage medium
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), etc.
  • An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the methods of the foregoing embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

La présente invention concerne un procédé d'attribution de ressources audio, consistant : à recevoir un message de demande d'une ressource audio provenant d'un premier programme d'application ; à attribuer la ressource audio au premier programme d'application, de telle sorte que le premier programme d'application utilise la ressource audio pour lire des données audio ; à recevoir, dans un mode à écran partagé, un message de demande de la ressource audio provenant d'un second programme d'application, le premier programme d'application étant dans une première partition d'écran, et le second programme d'application étant dans une seconde partition d'écran ; à acquérir un premier niveau de priorité du premier programme d'application et un second niveau de priorité du second programme d'application ; et à attribuer la ressource audio selon l'ordre du premier niveau de priorité et du second niveau de priorité, de telle sorte que le premier programme d'application et le second programme d'application utilisent la ressource audio pour lire des données audio. En conséquence, la présente invention concerne en outre un dispositif d'attribution de ressources audio, un appareil électronique et un support d'informations lisible, permettant de résoudre le problème de conflits de ressources audio dans un mode à écran divisé, et d'améliorer l'expérience d'utilisateur.
PCT/CN2018/120137 2018-12-10 2018-12-10 Procédé et dispositif d'attribution de ressources audio et appareil électronique WO2020118495A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/120137 WO2020118495A1 (fr) 2018-12-10 2018-12-10 Procédé et dispositif d'attribution de ressources audio et appareil électronique
CN201880098688.8A CN115668123A (zh) 2018-12-10 2018-12-10 一种音频资源分配方法、装置和电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/120137 WO2020118495A1 (fr) 2018-12-10 2018-12-10 Procédé et dispositif d'attribution de ressources audio et appareil électronique

Publications (1)

Publication Number Publication Date
WO2020118495A1 true WO2020118495A1 (fr) 2020-06-18

Family

ID=71076176

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/120137 WO2020118495A1 (fr) 2018-12-10 2018-12-10 Procédé et dispositif d'attribution de ressources audio et appareil électronique

Country Status (2)

Country Link
CN (1) CN115668123A (fr)
WO (1) WO2020118495A1 (fr)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416290A (zh) * 2020-11-27 2021-02-26 扬州航盛科技有限公司 一种基于音频焦点的音频管理方法
CN114666613A (zh) * 2020-12-22 2022-06-24 华为终端有限公司 一种网络直播方法及电子设备
CN115250310A (zh) * 2021-04-26 2022-10-28 深圳市万普拉斯科技有限公司 一种移动终端的控制方法、装置及移动终端
WO2024041328A1 (fr) * 2022-08-22 2024-02-29 华为技术有限公司 Procédé d'attribution de ressources, appareil et support

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617803A (zh) * 2013-11-08 2014-03-05 中标软件有限公司 一种车载系统上多音源自动切换方法及系统
CN104202649A (zh) * 2014-08-27 2014-12-10 四川长虹电器股份有限公司 同时操控智能电视多应用的方法
CN108958695A (zh) * 2018-06-28 2018-12-07 努比亚技术有限公司 音频输出方法、装置及计算机可读存储介质

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617803A (zh) * 2013-11-08 2014-03-05 中标软件有限公司 一种车载系统上多音源自动切换方法及系统
CN104202649A (zh) * 2014-08-27 2014-12-10 四川长虹电器股份有限公司 同时操控智能电视多应用的方法
CN108958695A (zh) * 2018-06-28 2018-12-07 努比亚技术有限公司 音频输出方法、装置及计算机可读存储介质

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416290A (zh) * 2020-11-27 2021-02-26 扬州航盛科技有限公司 一种基于音频焦点的音频管理方法
CN114666613A (zh) * 2020-12-22 2022-06-24 华为终端有限公司 一种网络直播方法及电子设备
CN114666613B (zh) * 2020-12-22 2024-01-05 华为终端有限公司 一种网络直播方法及电子设备
CN115250310A (zh) * 2021-04-26 2022-10-28 深圳市万普拉斯科技有限公司 一种移动终端的控制方法、装置及移动终端
WO2024041328A1 (fr) * 2022-08-22 2024-02-29 华为技术有限公司 Procédé d'attribution de ressources, appareil et support

Also Published As

Publication number Publication date
CN115668123A (zh) 2023-01-31

Similar Documents

Publication Publication Date Title
CN110752980B (zh) 一种消息发送方法及电子设备
US20170366841A1 (en) Method, apparatus and system for displaying bullet screen information
CN107391259B (zh) 资源处理方法和装置、计算机可读存储介质、移动终端
WO2020118495A1 (fr) Procédé et dispositif d'attribution de ressources audio et appareil électronique
WO2017008569A1 (fr) Terminal, appareil et procédé de mise à jour de messages
CN106454404A (zh) 一种播放直播视频的方法、装置和系统
US20170147187A1 (en) To-be-shared interface processing method, and terminal
CN107634962B (zh) 网络带宽的管理方法及相关产品
CN106371964B (zh) 一种进行消息提示的方法和装置
CN106254910B (zh) 一种记录图像的方法和装置
US9497565B1 (en) Interface display method, device, terminal, server and system
WO2018095130A1 (fr) Procédé et système de détermination de durée de diffusion en continu en direct
CN106940997B (zh) 一种向语音识别系统发送语音信号的方法和装置
WO2020103070A1 (fr) Procédé et appareil pour traiter un programme d'application, et dispositif électronique
CN110475020B (zh) 设备控制方法及相关产品
EP3742769A1 (fr) Procédé de traitement de service et terminal de communication mobile
CN111124345A (zh) 一种音频源处理的方法及移动终端
TW201541337A (zh) 移動終端中訊息的顯示方法、裝置和系統
WO2019076250A1 (fr) Procédé de gestion de message de poussée, et produits associés
CN108322602B (zh) 一种处理应用无响应的方法、终端和计算机可读存储介质
CN108601048B (zh) 一种流量控制方法及移动终端
CN113039774B (zh) 一种对应用程序进行处理的方法、装置、电子设备和存储介质
KR101876394B1 (ko) 단말기에 미디어 데이터를 재생하는 방법 및 장치
WO2015078349A1 (fr) Procédé et appareil de commutation d'un état de réception du son d'un microphone
CN113039517B (zh) 一种音频资源调用的方法、装置及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18942699

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15.10.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18942699

Country of ref document: EP

Kind code of ref document: A1