CN109508168B - Multi-channel volume adjusting method and related device - Google Patents

Multi-channel volume adjusting method and related device Download PDF

Info

Publication number
CN109508168B
CN109508168B CN201811279004.2A CN201811279004A CN109508168B CN 109508168 B CN109508168 B CN 109508168B CN 201811279004 A CN201811279004 A CN 201811279004A CN 109508168 B CN109508168 B CN 109508168B
Authority
CN
China
Prior art keywords
audio
volume
audio streams
streams
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811279004.2A
Other languages
Chinese (zh)
Other versions
CN109508168A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201811279004.2A priority Critical patent/CN109508168B/en
Publication of CN109508168A publication Critical patent/CN109508168A/en
Application granted granted Critical
Publication of CN109508168B publication Critical patent/CN109508168B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (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)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application discloses a multipath volume adjusting method and a related device, which are applied to electronic equipment, wherein the method comprises the following steps: when a playing request aiming at least two audio streams is detected, determining a matching relation between the at least two audio streams and the at least two audio amplifying circuits, wherein the matching relation is used for configuring an audio amplifying circuit for each audio stream in the at least two audio streams; determining a volume adjusting mechanism of the at least two audio streams according to the matching relationship, wherein the volume of the audio stream processed by each audio amplifying circuit in the volume adjusting mechanism supports independent adjustment; and under the constraint of the volume adjusting mechanism, adjusting the volume of at least one audio stream in the at least two audio streams. The method is favorable for improving the intelligence and the accuracy of the multi-path volume adjustment.

Description

Multi-channel volume adjusting method and related device
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a method and a related device for adjusting multiple channels of sound volume.
Background
With the rapid development and the increasing popularity of the technology of the intelligent terminal (such as a smart phone), the technology of the intelligent terminal is now an indispensable electronic product in the daily life of users. With the higher and higher configuration of the mobile terminal, the multitask and split screen functions are more and more powerful, and when the mobile terminal performs multitask in a split screen mode, the differentiated visual requirements of a user can be met, but the differentiated auditory requirements cannot be met at the same time. If the split screens execute double tasks, the volume of each split screen cannot be independently adjusted, if a user wants to listen to a certain frequency-divided sound, other split screen tasks must be suspended or other split screen sounds must be closed, extra operation is brought to the user, and meanwhile diversified experience requirements of the user cannot be met.
Disclosure of Invention
The embodiment of the application provides a multipath volume adjusting method and a related device, which are beneficial to improving the intelligence and the accuracy of multipath volume adjustment of electronic equipment.
In a first aspect, an embodiment of the present application provides a multi-path volume adjustment method, which is applied to an electronic device, where the electronic device includes a baseband chip, at least two audio amplification circuits, and a speaker, the baseband chip is connected to the at least two audio amplification circuits, and the at least two audio amplification circuits are connected to the speaker, and the method includes:
when a playing request aiming at least two audio streams is detected, determining a matching relation between the at least two audio streams and the at least two audio amplifying circuits, wherein the matching relation is used for configuring an audio amplifying circuit for each audio stream in the at least two audio streams;
determining a volume adjusting mechanism of the at least two audio streams according to the matching relationship, wherein the volume of the audio stream processed by each audio amplifying circuit in the volume adjusting mechanism supports independent adjustment;
and under the constraint of the volume adjusting mechanism, adjusting the volume of at least one audio stream in the at least two audio streams.
In a second aspect, an embodiment of the present application provides a multichannel volume control device, which is characterized in that, is applied to an electronic device, the electronic device includes a baseband chip, at least two audio amplifier circuits and a speaker, the baseband chip is connected to the at least two audio amplifier circuits, the at least two audio amplifier circuits are connected to the speaker, the multichannel volume control device includes a determination unit and a control unit, wherein:
the determining unit is configured to determine a matching relationship between the at least two audio streams and the at least two audio amplifying circuits when a play request for the at least two audio streams is detected, where the matching relationship is used to configure an audio amplifying circuit for each of the at least two audio streams;
the determining unit is further configured to determine, according to the matching relationship, volume adjustment mechanisms for the at least two audio streams, where volume of an audio stream processed by each audio amplifying circuit in the volume adjustment mechanisms supports independent adjustment;
and the adjusting unit is used for adjusting the volume of at least one audio stream in the at least two audio streams under the constraint of the volume adjusting mechanism.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
It can be seen that, in the embodiment of the present application, when a play request for at least two audio streams is detected, the electronic device first determines a matching relationship between the at least two audio streams and the at least two audio amplifying circuits, where the matching relationship is used to configure an audio amplifying circuit for each of the at least two audio streams; secondly, determining a volume adjusting mechanism of the at least two audio streams according to the matching relationship, wherein the volume of the audio stream processed by each audio amplifying circuit in the volume adjusting mechanism supports independent adjustment; and finally, under the constraint of the volume adjusting mechanism, adjusting the volume of at least one audio stream in the at least two audio streams. Therefore, the electronic equipment obtains the output quantity of the audio streams through the detected playing request of the audio streams, and further obtains the matching relation between the corresponding audio streams and the audio amplifying circuit, the audio streams can be controlled in size through the matching relation, the conditions that the volume is uniformly adjusted, synchronously increased and synchronously reduced under the condition of multi-channel audio streams are improved, the volume is output in a differentiated mode under the condition of multi-channel audio streams, the multi-task experience of a user is not influenced, and the intelligence and the accuracy of multi-channel volume adjustment are effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
FIG. 1A is a schematic diagram of a program runtime space of a smart phone;
FIG. 1B is a system architecture diagram of an android system;
fig. 2 is a schematic flowchart of a multi-channel volume adjustment method according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of another multi-channel volume adjustment method disclosed in the embodiments of the present application;
fig. 4 is a schematic flow chart of another multi-channel volume adjustment method disclosed in the embodiments of the present application;
fig. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 6 is a block diagram illustrating functional units of an electronic device according to an embodiment of the present disclosure.
Detailed description of the invention
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
As shown in fig. 1A, currently, an electronic device such as a smart phone is generally provided with a program running space, where the program running space includes a user space and an operating system space, where the user space runs one or more applications, the one or more applications are third-party applications installed in the electronic device, a multi-channel volume adjustment algorithm runs in the user space, and the operating system space runs an operating system of the electronic device.
The electronic device can specifically run an Android system, a mobile operating system iOS developed by apple Inc., and the like, and the electronic device is not limited herein. As shown in fig. 1B, for example, the electronic device runs an Android system, the corresponding user space includes Application layers (Applications) in the Android system, and the operating system space may include an Application Framework layer (Application Framework) in the Android system, a system Runtime library layer (including system Runtime Libraries and Android Runtime runtimes), and a Linux Kernel layer (Linux Kernel). The application layer comprises various applications directly interacting with the user or service programs written by Java language and running in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) SMS, phone dialing, picture viewer, calendar, games, maps, World Wide Web (Web) browser, and other applications developed by developers. The application framework layer provides a series of class libraries required by Android application development, can be used for reusing components, and can also realize personalized extension through inheritance. The system operation library layer is used for supporting an application framework and providing services for each component in the Android system. The system operation library layer is composed of a system class library and Android operation. The Android runtime comprises two parts, namely a core library and a Dalvik virtual machine. The Linux kernel layer is used for realizing core functions such as hardware device driving, process and memory management, a network protocol stack, power management, wireless communication and the like.
Electronic devices may include various handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices connected to wireless modems, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth, having wireless communication capabilities. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The following describes embodiments of the present application in detail.
Referring to fig. 2, fig. 2 is a schematic flow chart of a multi-channel volume adjustment method provided in an embodiment of the present application, and is applied to an electronic device, where the electronic device includes a baseband chip, at least two audio amplification circuits, and a speaker, the baseband chip is connected to the at least two audio amplification circuits, and the at least two audio amplification circuits are connected to the speaker, and the multi-channel volume adjustment method includes:
s201, when detecting a play request for at least two audio streams, the electronic device determines a matching relationship between the at least two audio streams and the at least two audio amplifying circuits, where the matching relationship is used to configure an audio amplifying circuit for each of the at least two audio streams.
Wherein, one path of audio stream corresponds to the audio signal of the same audio file.
The matching relationship may be one-to-one, one-to-many, and many-to-many, and is not limited herein.
S202, the electronic equipment determines volume adjusting mechanisms of the at least two audio streams according to the matching relation, and the volume of the audio stream processed by each audio amplifying circuit in the volume adjusting mechanisms supports independent adjustment.
Wherein the volume adjustment mechanism is used for adjusting a plurality of volume levels in the case of a plurality of audio streams.
S203, the electronic device adjusts the volume of at least one audio stream of the at least two audio streams under the constraint of the volume adjustment mechanism.
Under the constraint of the volume adjusting mechanism, the volume of the target audio stream can be independently adjusted, and the rest volumes can be subjected to mute processing.
It can be seen that, in the embodiment of the present application, when a play request for at least two audio streams is detected, the electronic device first determines a matching relationship between the at least two audio streams and the at least two audio amplifying circuits, where the matching relationship is used to configure an audio amplifying circuit for each of the at least two audio streams; secondly, determining a volume adjusting mechanism of the at least two audio streams according to the matching relationship, wherein the volume of the audio stream processed by each audio amplifying circuit in the volume adjusting mechanism supports independent adjustment; and finally, under the constraint of the volume adjusting mechanism, adjusting the volume of at least one audio stream in the at least two audio streams. Therefore, the electronic equipment obtains the output quantity of the audio streams through the detected playing request of the audio streams, and further obtains the matching relation between the corresponding audio streams and the audio amplifying circuit, the audio streams can be controlled in size through the matching relation, the conditions that the volume is uniformly adjusted, synchronously increased and synchronously reduced under the condition of multi-channel audio streams are improved, the volume is output in a differentiated mode under the condition of multi-channel audio streams, the multi-task experience of a user is not influenced, and the intelligence and the accuracy of multi-channel volume adjustment are effectively improved.
In one possible example, the electronic device adjusting the volume of at least one of the at least two audio streams under the constraint of the volume adjustment mechanism includes: acquiring a sliding operation aiming at a target display area in a touch display screen of the electronic equipment, wherein the target display area displays an application interface of a target application, the target application corresponds to a target audio stream, and the target audio stream is an audio stream in the at least two audio streams; and if the sliding operation is upwards sliding or downwards sliding and the sliding time exceeds a preset time period, displaying a volume adjustment progress bar in the target display area, and adjusting the volume of the target audio stream according to the sliding operation.
The preset time period may be two seconds, three seconds, five seconds, and the like, and is not limited herein.
In this example, the electronic device may control the volume adjustment of the target audio stream under the multiple audio streams through the sliding operation of the target display area, so as to effectively improve the intelligence and accuracy of the multiple audio streams.
In one possible example, the electronic device includes at least two running applications, and the adjusting the volume of at least one of the at least two audio streams under the constraint of the volume adjustment mechanism includes: acquiring double-click operation aiming at a volume plus key or a volume minus key, and determining a target application in the at least two applications according to the double-click operation, wherein the target application corresponds to a target audio stream, and the target audio stream is an audio stream in the at least two audio streams; and acquiring click operation aiming at the volume increasing key or the volume decreasing key, and adjusting the volume of the target audio stream according to the click operation.
Optionally, double-clicking the volume up key switches the at least two application programs, and double-clicking the volume down key locks the currently displayed application program.
Therefore, in this example, the electronic device may determine the target application of the volume to be adjusted first by performing different operations on the volume up key and the volume down key, and then perform accurate adjustment, so as to effectively improve the intelligence and accuracy of the multi-path volume adjustment.
In one possible example, after the electronic device adjusts the volume of the target audio stream, the method further comprises: and when the volume of the target audio stream is detected to exceed a preset threshold value, adjusting the volume of other audio streams except the target audio stream in the at least two audio streams to be mute.
The preset threshold may be user-defined, factory-defined, or obtained according to an average value of historical playing volumes, and is not limited herein.
Therefore, in this example, the electronic device monitors the target audio stream to adjust the volume of other audio streams except the target audio stream to be mute in time, so as to reduce the operating power consumption of the electronic device, avoid the situations of fast power consumption and audio confusion of the electronic device, and effectively improve the intelligence and accuracy of multi-channel volume adjustment.
In one possible example, the at least two audio streams are n audio streams, and the at least two audio amplifying circuits are m audio amplifying circuits, where n is greater than m, and n and m are positive integers; the determining the volume adjustment mechanism of the at least two audio streams according to the matching relationship includes: acquiring the running time of each application in n applications corresponding to the n paths of audio streams to obtain n running times; sequencing the n running times to obtain a target sequence; determining m audio streams in the n audio streams according to the target sequence; and establishing a corresponding relation between the m audio streams and the m audio amplifying circuits, wherein each audio amplifying circuit corresponds to one audio stream, and other audio streams except the m audio streams in the n audio streams are subjected to mute processing.
Wherein, the corresponding relation is a one-to-one corresponding relation.
Therefore, in this example, the electronic device obtains the priority of each application by sequencing the running time of each application, establishes the corresponding relationship with the audio amplifying circuit according to the priority of each application, avoids the situation of mistakenly muting important applications, and can effectively improve the intelligence and accuracy of multi-path volume adjustment.
In one possible example, the at least two audio streams are n audio streams, and the at least two audio amplifying circuits are m audio amplifying circuits, where n is less than or equal to m, and n and m are positive integers; the determining the volume adjustment mechanism of the at least two audio streams according to the matching relationship includes: randomly configuring n audio amplification circuits in the m audio amplification circuits; and establishing a corresponding relation between the n audio amplifying circuits and the n audio streams, wherein each audio amplifying circuit corresponds to one audio stream.
Wherein, the corresponding relation is a one-to-one corresponding relation.
In this example, when the number of the audio amplifying circuits is greater than the number of the audio streams, the electronic device does not have the condition of uneven resource allocation, and thus the corresponding relationship between the audio amplifying circuits and the audio streams can be randomly established, and the intelligence and flexibility of resource allocation in the multi-channel volume adjustment can be effectively improved.
In one possible example, the display screen of the electronic device includes at least two display areas corresponding to at least two applications corresponding to the at least two audio streams.
Wherein the at least two display areas refer to a multitasking state in which the electronic device is in a split screen state.
Therefore, in the example, the electronic equipment realizes the differentiated output of the volume between the split screens by separating the split screen volume adjusting functions, and meets the diversified experience requirements of users.
Referring to fig. 3, fig. 3 is a schematic flow chart of a multi-path volume adjustment method provided in the embodiment of the present application, and is applied to an electronic device, where the electronic device includes a baseband chip, at least two audio amplification circuits, and a speaker, the baseband chip is connected to the at least two audio amplification circuits, and the at least two audio amplification circuits are connected to the speaker. As shown in the figure, the multi-channel volume adjusting method includes:
s301, when the electronic device detects a playing request for at least two audio streams, determining a matching relationship between the at least two audio streams and the at least two audio amplifying circuits.
S302, the electronic equipment determines the volume adjusting mechanism of the at least two audio streams according to the matching relation.
S303, the electronic equipment acquires sliding operation aiming at a target display area in a touch display screen of the electronic equipment.
S304, if the sliding operation is upward sliding or downward sliding, and the sliding time exceeds a preset time period, the electronic equipment displays a volume adjustment progress bar in the target display area, and adjusts the volume of the target audio stream according to the sliding operation.
It can be seen that, in the embodiment of the present application, when a play request for at least two audio streams is detected, an electronic device first determines a matching relationship between the at least two audio streams and the at least two audio amplifying circuits, where the matching relationship is used to configure an audio amplifying circuit for each of the at least two audio streams; secondly, determining a volume adjusting mechanism of the at least two audio streams according to the matching relationship, wherein the volume of the audio stream processed by each audio amplifying circuit in the volume adjusting mechanism supports independent adjustment; and finally, under the constraint of the volume adjusting mechanism, adjusting the volume of at least one audio stream in the at least two audio streams. Therefore, the electronic equipment obtains the output quantity of the audio streams through the detected playing request of the audio streams, and further obtains the matching relation between the corresponding audio streams and the audio amplifying circuit, the audio streams can be controlled in size through the matching relation, the conditions that the volume is uniformly adjusted, synchronously increased and synchronously reduced under the condition of multi-channel audio streams are improved, the volume is output in a differentiated mode under the condition of multi-channel audio streams, the multi-task experience of a user is not influenced, and the intelligence and the accuracy of multi-channel volume adjustment are effectively improved.
In addition, the electronic equipment can control the volume adjustment of the target audio stream under the multi-channel audio stream through the sliding operation of the target display area, and the intelligence and the accuracy of the multi-channel volume adjustment can be effectively improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of a multi-path volume adjusting method provided in the embodiment of the present application, and is applied to an electronic device, where the electronic device includes a baseband chip, at least two audio amplification circuits, and a speaker, the baseband chip is connected to the at least two audio amplification circuits, and the at least two audio amplification circuits are connected to the speaker. As shown in the figure, the multi-channel volume adjusting method includes:
s401, when the electronic equipment detects a playing request aiming at least two audio streams, the electronic equipment determines the matching relation between the at least two audio streams and the at least two audio amplifying circuits.
S402, the electronic equipment obtains the running time of each application in the n applications corresponding to the n paths of audio streams to obtain n running times.
S403, the electronic equipment sequences the n running times to obtain a target sequence.
S404, the electronic equipment determines m paths of audio streams in the n paths of audio streams according to the target sequence.
S405, the electronic device establishes a corresponding relation between the m audio streams and the m audio amplifying circuits, each audio amplifying circuit corresponds to one audio stream, and other audio streams except the m audio streams in the n audio streams are subjected to mute processing.
S406, the electronic equipment acquires double-click operation aiming at a volume plus key or a volume minus key, and determines a target application in the at least two applications according to the double-click operation.
S407, the electronic device obtains click operation aiming at the volume up key or the volume down key, and adjusts the volume of the target audio stream according to the click operation.
It can be seen that, in the embodiment of the present application, when a play request for at least two audio streams is detected, an electronic device first determines a matching relationship between the at least two audio streams and the at least two audio amplifying circuits, where the matching relationship is used to configure an audio amplifying circuit for each of the at least two audio streams; secondly, determining a volume adjusting mechanism of the at least two audio streams according to the matching relationship, wherein the volume of the audio stream processed by each audio amplifying circuit in the volume adjusting mechanism supports independent adjustment; and finally, under the constraint of the volume adjusting mechanism, adjusting the volume of at least one audio stream in the at least two audio streams. Therefore, the electronic equipment obtains the output quantity of the audio streams through the detected playing request of the audio streams, and further obtains the matching relation between the corresponding audio streams and the audio amplifying circuit, the audio streams can be controlled in size through the matching relation, the conditions that the volume is uniformly adjusted, synchronously increased and synchronously reduced under the condition of multi-channel audio streams are improved, the volume is output in a differentiated mode under the condition of multi-channel audio streams, the multi-task experience of a user is not influenced, and the intelligence and the accuracy of multi-channel volume adjustment are effectively improved.
In addition, the electronic equipment obtains the priority of each application through the sequencing of the running time of each application, establishes the corresponding relation with the audio amplifying circuit according to the priority of each application, avoids the condition of mistakenly muting important applications, and can effectively improve the intelligence and the accuracy of multi-path volume adjustment.
In addition, the electronic equipment can determine the target application of the volume to be adjusted through different operations of the volume increasing key and the volume decreasing key, so that the adjustment can be accurately carried out, and the intelligence and the accuracy of the multi-path volume adjustment can be effectively improved.
Consistent with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, where the electronic device runs with one or more applications and an operating system, and as shown, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are different from the one or more applications, and the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps;
when a playing request aiming at least two audio streams is detected, determining a matching relation between the at least two audio streams and the at least two audio amplifying circuits, wherein the matching relation is used for configuring an audio amplifying circuit for each audio stream in the at least two audio streams;
determining a volume adjusting mechanism of the at least two audio streams according to the matching relationship, wherein the volume of the audio stream processed by each audio amplifying circuit in the volume adjusting mechanism supports independent adjustment;
and under the constraint of the volume adjusting mechanism, adjusting the volume of at least one audio stream in the at least two audio streams.
It can be seen that, in the embodiment of the present application, when a play request for at least two audio streams is detected, the electronic device first determines a matching relationship between the at least two audio streams and the at least two audio amplifying circuits, where the matching relationship is used to configure an audio amplifying circuit for each of the at least two audio streams; secondly, determining a volume adjusting mechanism of the at least two audio streams according to the matching relationship, wherein the volume of the audio stream processed by each audio amplifying circuit in the volume adjusting mechanism supports independent adjustment; and finally, under the constraint of the volume adjusting mechanism, adjusting the volume of at least one audio stream in the at least two audio streams. Therefore, the electronic equipment obtains the output quantity of the audio streams through the detected playing request of the audio streams, and further obtains the matching relation between the corresponding audio streams and the audio amplifying circuit, the audio streams can be controlled in size through the matching relation, the conditions that the volume is uniformly adjusted, synchronously increased and synchronously reduced under the condition of multi-channel audio streams are improved, the volume is output in a differentiated mode under the condition of multi-channel audio streams, the multi-task experience of a user is not influenced, and the intelligence and the accuracy of multi-channel volume adjustment are effectively improved.
In one possible example, in terms of adjusting the volume of at least one of the at least two audio streams under the constraint of the volume adjustment mechanism, the instructions in the program are specifically configured to: acquiring a sliding operation aiming at a target display area in a touch display screen of the electronic equipment, wherein the target display area displays an application interface of a target application, the target application corresponds to a target audio stream, and the target audio stream is an audio stream in the at least two audio streams; and if the sliding operation is upwards sliding or downwards sliding and the sliding time exceeds a preset time period, displaying a volume adjustment progress bar in the target display area, and adjusting the volume of the target audio stream according to the sliding operation.
In one possible example, the electronic device includes at least two running applications, and in terms of adjusting the volume of at least one of the at least two audio streams under the constraint of the volume adjustment mechanism, the instructions in the program are specifically configured to: acquiring double-click operation aiming at a volume plus key or a volume minus key, and determining a target application in the at least two applications according to the double-click operation, wherein the target application corresponds to a target audio stream, and the target audio stream is an audio stream in the at least two audio streams; and acquiring click operation aiming at the volume increasing key or the volume decreasing key, and adjusting the volume of the target audio stream according to the click operation.
In one possible example, after the adjusting the volume of the target audio stream, the instructions in the program are further to: and when the volume of the target audio stream is detected to exceed a preset threshold value, adjusting the volume of other audio streams except the target audio stream in the at least two audio streams to be mute.
In one possible example, the at least two audio streams are n audio streams, and the at least two audio amplifying circuits are m audio amplifying circuits, where n is greater than m, and n and m are positive integers; in the aspect of determining the volume adjustment mechanism of the at least two audio streams according to the matching relationship, the instructions in the program are specifically configured to perform the following operations: acquiring the running time of each application in n applications corresponding to the n paths of audio streams to obtain n running times; sequencing the n running times to obtain a target sequence; determining m audio streams in the n audio streams according to the target sequence; and establishing a corresponding relation between the m audio streams and the m audio amplifying circuits, wherein each audio amplifying circuit corresponds to one audio stream, and other audio streams except the m audio streams in the n audio streams are subjected to mute processing.
In one possible example, the at least two audio streams are n audio streams, and the at least two audio amplifying circuits are m audio amplifying circuits, where n is less than or equal to m, and n and m are positive integers; in the aspect of determining the volume adjustment mechanism of the at least two audio streams according to the matching relationship, the instructions in the program are specifically configured to perform the following operations: randomly configuring n audio amplification circuits in the m audio amplification circuits; and establishing a corresponding relation between the n audio amplifying circuits and the n audio streams, wherein each audio amplifying circuit corresponds to one audio stream.
In one possible example, the display screen of the electronic device includes at least two display areas corresponding to at least two applications corresponding to the at least two audio streams.
The above embodiments mainly introduce the scheme of the embodiments of the present application from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The following is an embodiment of the apparatus of the present invention, which is used to perform the method implemented by the embodiment of the method of the present invention. As shown in fig. 6, the multi-channel volume adjusting apparatus 600 is applied to an electronic device, the electronic device includes a baseband chip, at least two audio amplification circuits, and a speaker, the baseband chip is connected to the at least two audio amplification circuits, the at least two audio amplification circuits are connected to the speaker, and the multi-channel volume adjusting apparatus 600 includes a determining unit 601 and an adjusting unit 602, where:
the determining unit 601 is configured to determine, when a play request for at least two audio streams is detected, a matching relationship between the at least two audio streams and the at least two audio amplifying circuits, where the matching relationship is used to configure an audio amplifying circuit for each of the at least two audio streams;
the determining unit 601 is further configured to determine, according to the matching relationship, volume adjustment mechanisms of the at least two audio streams, where the volume of the audio stream processed by each audio amplifying circuit in the volume adjustment mechanisms supports independent adjustment;
the adjusting unit 602 is configured to adjust the volume of at least one of the at least two audio streams under the constraint of the volume adjusting mechanism.
It can be seen that, in the embodiment of the present application, when a play request for at least two audio streams is detected, the electronic device first determines a matching relationship between the at least two audio streams and the at least two audio amplifying circuits, where the matching relationship is used to configure an audio amplifying circuit for each of the at least two audio streams; secondly, determining a volume adjusting mechanism of the at least two audio streams according to the matching relationship, wherein the volume of the audio stream processed by each audio amplifying circuit in the volume adjusting mechanism supports independent adjustment; and finally, under the constraint of the volume adjusting mechanism, adjusting the volume of at least one audio stream in the at least two audio streams. Therefore, the electronic equipment obtains the output quantity of the audio streams through the detected playing request of the audio streams, and further obtains the matching relation between the corresponding audio streams and the audio amplifying circuit, the audio streams can be controlled in size through the matching relation, the conditions that the volume is uniformly adjusted, synchronously increased and synchronously reduced under the condition of multi-channel audio streams are improved, the volume is output in a differentiated mode under the condition of multi-channel audio streams, the multi-task experience of a user is not influenced, and the intelligence and the accuracy of multi-channel volume adjustment are effectively improved.
In a possible example, in terms of adjusting the volume of at least one of the at least two audio streams under the constraint of the volume adjustment mechanism, the determining unit 601 is specifically configured to: acquiring a sliding operation aiming at a target display area in a touch display screen of the electronic equipment, wherein the target display area displays an application interface of a target application, the target application corresponds to a target audio stream, and the target audio stream is an audio stream in the at least two audio streams; and if the sliding operation is upwards sliding or downwards sliding and the sliding time exceeds a preset time period, displaying a volume adjustment progress bar in the target display area, and adjusting the volume of the target audio stream according to the sliding operation.
In a possible example, the electronic device includes at least two running applications, and in terms of adjusting the volume of at least one of the at least two audio streams under the constraint of the volume adjustment mechanism, the determining unit 601 is specifically configured to: acquiring double-click operation aiming at a volume plus key or a volume minus key, and determining a target application in the at least two applications according to the double-click operation, wherein the target application corresponds to a target audio stream, and the target audio stream is an audio stream in the at least two audio streams; and acquiring click operation aiming at the volume increasing key or the volume decreasing key, and adjusting the volume of the target audio stream according to the click operation.
In one possible example, after the adjusting the volume of the target audio stream, the adjusting unit 602 is specifically configured to: and when the volume of the target audio stream is detected to exceed a preset threshold value, adjusting the volume of other audio streams except the target audio stream in the at least two audio streams to be mute.
In one possible example, the at least two audio streams are n audio streams, and the at least two audio amplifying circuits are m audio amplifying circuits, where n is greater than m, and n and m are positive integers; in the aspect of determining the volume adjustment mechanism of the at least two audio streams according to the matching relationship, the determining unit 601 is specifically configured to: acquiring the running time of each application in n applications corresponding to the n paths of audio streams to obtain n running times; sequencing the n running times to obtain a target sequence; determining m audio streams in the n audio streams according to the target sequence; and establishing a corresponding relation between the m audio streams and the m audio amplifying circuits, wherein each audio amplifying circuit corresponds to one audio stream, and other audio streams except the m audio streams in the n audio streams are subjected to mute processing.
In one possible example, the at least two audio streams are n audio streams, and the at least two audio amplifying circuits are m audio amplifying circuits, where n is less than or equal to m, and n and m are positive integers; in the aspect of determining the volume adjustment mechanism of the at least two audio streams according to the matching relationship, the determining unit 601 is specifically configured to: randomly configuring n audio amplification circuits in the m audio amplification circuits; and establishing a corresponding relation between the n audio amplifying circuits and the n audio streams, wherein each audio amplifying circuit corresponds to one audio stream.
In one possible example, the display screen of the electronic device includes at least two display areas corresponding to at least two applications corresponding to the at least two audio streams.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A multi-path volume adjusting method is applied to electronic equipment, the electronic equipment comprises a baseband chip, at least two paths of audio amplification circuits and a loudspeaker, the baseband chip is connected with the at least two paths of audio amplification circuits, the at least two paths of audio amplification circuits are connected with the loudspeaker, the electronic equipment comprises at least two running applications, and the method comprises the following steps:
when a playing request aiming at least two audio streams is detected, determining a matching relation between the at least two audio streams and the at least two audio amplifying circuits, wherein the matching relation is used for configuring an audio amplifying circuit for each audio stream in the at least two audio streams;
determining a volume adjusting mechanism of the at least two audio streams according to the matching relationship, wherein the volume of the audio stream processed by each audio amplifying circuit in the volume adjusting mechanism supports independent adjustment;
under the constraint of the volume adjustment mechanism, acquiring double-click operation aiming at a volume plus key or a volume minus key, and determining a target application in the at least two applications according to the double-click operation, wherein the target application corresponds to a target audio stream, and the target audio stream is an audio stream in the at least two audio streams;
and acquiring click operation aiming at the volume increasing key or the volume decreasing key, and adjusting the volume of the target audio stream according to the click operation.
2. The method of claim 1, wherein after the adjusting the volume of the target audio stream, the method further comprises:
and when the volume of the target audio stream is detected to exceed a preset threshold value, adjusting the volume of other audio streams except the target audio stream in the at least two audio streams to be mute.
3. The method according to claim 1, wherein the at least two audio streams are n audio streams, and the at least two audio amplifying circuits are m audio amplifying circuits, where n is greater than m, and n and m are positive integers; the determining the volume adjustment mechanism of the at least two audio streams according to the matching relationship includes:
acquiring the running time of each application in n applications corresponding to the n paths of audio streams to obtain n running times;
sequencing the n running times to obtain a target sequence;
determining m audio streams in the n audio streams according to the target sequence;
and establishing a corresponding relation between the m audio streams and the m audio amplifying circuits, wherein each audio amplifying circuit corresponds to one audio stream, and other audio streams except the m audio streams in the n audio streams are subjected to mute processing.
4. The method according to claim 1, wherein the at least two audio streams are n audio streams, and the at least two audio amplifying circuits are m audio amplifying circuits, where n is less than or equal to m, and n and m are positive integers; the determining the volume adjustment mechanism of the at least two audio streams according to the matching relationship includes:
randomly configuring n audio amplification circuits in the m audio amplification circuits;
and establishing a corresponding relation between the n audio amplifying circuits and the n audio streams, wherein each audio amplifying circuit corresponds to one audio stream.
5. The method according to any of claims 1-4, wherein the display screen of the electronic device comprises at least two display areas corresponding to at least two applications corresponding to the at least two audio streams.
6. The utility model provides a multichannel volume control device which characterized in that is applied to electronic equipment, electronic equipment includes baseband chip, two at least way audio amplification circuit and speaker, baseband chip connects two at least way audio amplification circuit, two at least way audio amplification circuit connect the speaker, electronic equipment is including two at least applications that are moving, multichannel volume control device is including confirming unit and regulating unit, wherein:
the determining unit is configured to determine a matching relationship between the at least two audio streams and the at least two audio amplifying circuits when a play request for the at least two audio streams is detected, where the matching relationship is used to configure an audio amplifying circuit for each of the at least two audio streams;
the determining unit is further configured to determine, according to the matching relationship, volume adjustment mechanisms for the at least two audio streams, where volume of an audio stream processed by each audio amplifying circuit in the volume adjustment mechanisms supports independent adjustment;
the adjusting unit is configured to obtain a double-click operation for a volume plus key or a volume minus key under the constraint of the volume adjusting mechanism, and determine a target application of the at least two applications according to the double-click operation, where the target application corresponds to a target audio stream, and the target audio stream is an audio stream of the at least two audio streams; and the volume control module is used for acquiring the click operation aiming at the volume increasing key or the volume decreasing key and adjusting the volume of the target audio stream according to the click operation.
7. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
8. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN201811279004.2A 2018-10-30 2018-10-30 Multi-channel volume adjusting method and related device Active CN109508168B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811279004.2A CN109508168B (en) 2018-10-30 2018-10-30 Multi-channel volume adjusting method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811279004.2A CN109508168B (en) 2018-10-30 2018-10-30 Multi-channel volume adjusting method and related device

Publications (2)

Publication Number Publication Date
CN109508168A CN109508168A (en) 2019-03-22
CN109508168B true CN109508168B (en) 2022-02-15

Family

ID=65747171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811279004.2A Active CN109508168B (en) 2018-10-30 2018-10-30 Multi-channel volume adjusting method and related device

Country Status (1)

Country Link
CN (1) CN109508168B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190568A (en) * 2019-12-30 2020-05-22 上海摩软通讯技术有限公司 Volume adjusting method and device
CN112199069A (en) * 2020-09-07 2021-01-08 上海商米科技集团股份有限公司 Audio control method and readable medium during multi-application operation based on Andriod
CN112099755A (en) * 2020-10-15 2020-12-18 上海商米科技集团股份有限公司 Method for simultaneously calling input audio stream by multiple applications and readable medium
CN113553024A (en) * 2021-07-30 2021-10-26 深圳康佳电子科技有限公司 Volume configuration method of split screen window, storage medium and terminal equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634717A (en) * 2013-11-28 2014-03-12 小米科技有限责任公司 Method, device and terminal equipment utilizing earphone to control
CN103677727A (en) * 2013-12-05 2014-03-26 深圳市中兴移动通信有限公司 Mobile terminal and audio control method
CN104699436A (en) * 2015-03-18 2015-06-10 蔡思强 Obverse split-screen display applicable to mobile device
CN104793916A (en) * 2014-01-20 2015-07-22 中兴通讯股份有限公司 Method and system for carrying out sound control over split screen terminal
CN105389111A (en) * 2015-10-28 2016-03-09 维沃移动通信有限公司 Operation method for split-screen display and electronic device
CN105404484A (en) * 2015-10-28 2016-03-16 努比亚技术有限公司 Terminal screen splitting device and method
CN106201423A (en) * 2016-07-01 2016-12-07 深圳市金立通信设备有限公司 A kind of audio control method and terminal
CN108153504A (en) * 2017-12-25 2018-06-12 努比亚技术有限公司 Double screen information interacting method, mobile terminal and computer readable storage medium
CN108153479A (en) * 2018-01-11 2018-06-12 广东欧珀移动通信有限公司 A kind of control method of mobile terminal, mobile terminal and storage medium
CN207572065U (en) * 2017-12-26 2018-07-03 广州视源电子科技股份有限公司 MCVF multichannel voice frequency regulating device and audio-frequence player device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634717A (en) * 2013-11-28 2014-03-12 小米科技有限责任公司 Method, device and terminal equipment utilizing earphone to control
CN103677727A (en) * 2013-12-05 2014-03-26 深圳市中兴移动通信有限公司 Mobile terminal and audio control method
CN104793916A (en) * 2014-01-20 2015-07-22 中兴通讯股份有限公司 Method and system for carrying out sound control over split screen terminal
CN104699436A (en) * 2015-03-18 2015-06-10 蔡思强 Obverse split-screen display applicable to mobile device
CN105389111A (en) * 2015-10-28 2016-03-09 维沃移动通信有限公司 Operation method for split-screen display and electronic device
CN105404484A (en) * 2015-10-28 2016-03-16 努比亚技术有限公司 Terminal screen splitting device and method
CN106201423A (en) * 2016-07-01 2016-12-07 深圳市金立通信设备有限公司 A kind of audio control method and terminal
CN108153504A (en) * 2017-12-25 2018-06-12 努比亚技术有限公司 Double screen information interacting method, mobile terminal and computer readable storage medium
CN207572065U (en) * 2017-12-26 2018-07-03 广州视源电子科技股份有限公司 MCVF multichannel voice frequency regulating device and audio-frequence player device
CN108153479A (en) * 2018-01-11 2018-06-12 广东欧珀移动通信有限公司 A kind of control method of mobile terminal, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN109508168A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
CN109508168B (en) Multi-channel volume adjusting method and related device
CN107562405B (en) Audio playing control method and device, storage medium and mobile terminal
CN111698672B (en) Audio synchronization method of wireless earphone and wireless earphone
WO2019109868A1 (en) Resource allocation method and related product
CN107479970B (en) Resource allocation method and related product
CN105487780A (en) Display method and device for control
CN103699501A (en) Audio equipment managing method and system of mobile terminal
CN104702795A (en) Mobile terminal and shortcut operation method thereof
CN104731483A (en) Method and terminal for fast adjusting set parameters
CN104793867A (en) Mobile terminal and sliding recognition method for virtual frame area of mobile terminal
CN107832142B (en) Resource allocation method and equipment for application program
CN104793991B (en) A kind of audio output apparatus switching method and device
KR102043641B1 (en) Operating Method For Nearby Function and Electronic Device supporting the same
CN105739895A (en) Mobile terminal and touch operation method therefor
CN107404587B (en) Audio playing control method, audio playing control device and mobile terminal
CN110704012A (en) Audio data processing method and device, electronic equipment and medium
KR20110050830A (en) Apparatus and method for playing the multisound channel content using dlna in portable communication system
CN106604204B (en) Method and system for remotely controlling terminal application through Bluetooth
CN111010716B (en) Network control method, network control device, storage medium and electronic equipment
CN108260213A (en) A kind of data transmission method, base station and terminal
CN108702688A (en) Method, apparatus, user equipment and base station for sending and receiving system message
CN112188342A (en) Equalization parameter determination method and device, electronic equipment and storage medium
EP1783600A2 (en) Method for arbitrating audio data output apparatuses
WO2020082387A1 (en) Method for changing audio channel, and related device
CN107071655B (en) Method and device for configuring stereo output, audio playing equipment and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant