CN112346699A - Volume control method and device for audio application, terminal and readable storage medium - Google Patents

Volume control method and device for audio application, terminal and readable storage medium Download PDF

Info

Publication number
CN112346699A
CN112346699A CN202011185058.XA CN202011185058A CN112346699A CN 112346699 A CN112346699 A CN 112346699A CN 202011185058 A CN202011185058 A CN 202011185058A CN 112346699 A CN112346699 A CN 112346699A
Authority
CN
China
Prior art keywords
audio
audio application
application
switched
terminal
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.)
Pending
Application number
CN202011185058.XA
Other languages
Chinese (zh)
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011185058.XA priority Critical patent/CN112346699A/en
Publication of CN112346699A publication Critical patent/CN112346699A/en
Pending legal-status Critical Current

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 invention provides a volume control method, a device, a terminal and a readable storage medium for audio application, wherein the method comprises the following steps: when the terminal plays audio by adopting a first audio application, detecting whether the first audio application is switched to a second audio application; when the first audio application is switched to the second audio application, the mute mode is turned on. The invention can prevent the user from hearing the noise when the user switches the audio application.

Description

Volume control method and device for audio application, terminal and readable storage medium
Technical Field
The present invention relates to the field of audio control technologies, and in particular, to a volume control method and apparatus for an audio application, a terminal, and a readable storage medium.
Background
Nowadays, can hold many audio frequency applications in the terminal, and switch over audio frequency application to another audio frequency application to the terminal when, can appear the noise, can influence the experience sense to the product when the user hears the noise, to above-mentioned condition, current terminal does not have comparatively intelligent solution.
Disclosure of Invention
Embodiments of the present invention provide a volume control method and apparatus for an audio application, a terminal, and a readable storage medium, and aim to solve the problem that when a terminal switches an audio application to another audio application, noise occurs, and when a user hears the noise, the experience of a product is affected, and for the above situation, an existing terminal does not have a more intelligent solution.
A first aspect of an embodiment of the present invention provides a volume control method for an audio application, including:
when the terminal plays audio by adopting a first audio application, detecting whether the first audio application is switched to a second audio application;
when the first audio application is switched to the second audio application, the mute mode is turned on.
A second aspect of an embodiment of the present invention provides a volume control device for audio applications, including:
the device comprises a detection unit, a processing unit and a control unit, wherein the detection unit is used for detecting whether a first audio application is switched to a second audio application when the first audio application is adopted to play audio;
and the control unit is used for starting the mute mode when the first audio application is switched to the second audio application.
A third aspect of the embodiments of the present invention provides a terminal, where the terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps of the volume control method for audio applications as described above.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium having stored thereon a computer program, which, when executed by a processor, implements the steps of the volume control method for an audio application as described above.
In the technical scheme of the embodiment, when the terminal plays audio by adopting a first audio application, whether the first audio application is switched to a second audio application is detected; when the first audio application is switched to the second audio application, the mute mode is turned on. Since a noise is easily generated when an application is switched between audio applications, the present invention can turn on a mute mode to prevent a user from hearing a noise when detecting that switching between audio applications is to be performed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a hardware architecture of a terminal according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a volume control method for audio applications according to a first embodiment of the present invention;
FIG. 3 is a detailed flowchart of step S100 of a volume control method for audio applications according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a step S100 of a volume control method for audio applications according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a step S100 of a seventh embodiment of a volume control method for audio applications according to the present invention;
FIG. 6 is a flowchart illustrating a step S109 of an eighth embodiment of a volume control method for audio applications according to the present invention;
FIG. 7 is a flowchart illustrating a ninth embodiment of a volume control method for audio applications according to the present invention;
fig. 8 is a block diagram of the functional units of the volume control device for audio applications according to the present invention.
Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the technical scheme of the embodiment, when the terminal plays audio by adopting a first audio application, whether the first audio application is switched to a second audio application is detected; when the first audio application is switched to the second audio application, the mute mode is turned on.
Since a noise is easily generated when an application is switched between audio applications, the present invention can turn on a mute mode to prevent a user from hearing a noise when detecting that switching between audio applications is to be performed.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware architecture of a terminal according to an embodiment of the present invention.
The embodiment of the invention relates to a controller, which comprises: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein a communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As in fig. 1, a detection program may be included in the memory 103 as a kind of computer storage medium; and the processor 101 may be configured to call the detection program stored in the memory 102 and perform the following operations:
when the first audio application is adopted to play audio, detecting whether the first audio application is switched to a second audio application;
when the first audio application is switched to the second audio application, the mute mode is turned on.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
acquiring audio data output by a first audio application within a first preset time length; if the data volume of the audio data is smaller than a first preset threshold value, determining that the first audio application is switched to a second audio application; alternatively, the first and second electrodes may be,
acquiring audio data output by the first audio application within a second preset time period in a timing mode; when the data volume of the audio data is smaller than a second preset threshold value; updating the continuous times that the data volume of the first audio application in the second preset duration is smaller than the second preset threshold; and if the updated continuous times reach the preset times, determining that the first audio application is switched to the second audio application.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
acquiring screen capture information of a first audio application and a second audio application;
and displaying screen capture information.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
when the first audio application is detected to be switched into other applications, determining whether the other applications are audio applications;
if so, determining that the first audio application is switched to the second audio application.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
detecting whether an application package corresponding to other applications comprises a program for starting an audio output module;
if so, the other application is determined to be an audio application.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
detecting a key skipping event of the terminal;
determining whether a jumping object of the key jumping event is an audio application;
if so, determining that the first audio application is switched to the second audio application.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
determining the duration of turning on the silent mode;
and when the duration is longer than the preset duration, exiting the mute mode.
In the technical scheme provided by this embodiment, when the terminal uses the first audio application to play audio, it is detected whether the first audio application is switched to the second audio application; when the first audio application is switched to the second audio application, the mute mode is turned on. Since a noise is easily generated when an application is switched between audio applications, the present invention can turn on a mute mode to prevent a user from hearing a noise when detecting that switching between audio applications is to be performed.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 2, fig. 2 is a first embodiment of a volume control method for an audio application according to the present invention, the volume control method for an audio application includes the following steps:
step S100, when the terminal adopts the first audio application to play audio, whether the first audio application is switched to the second audio application is detected.
The intelligent home is characterized in that a home is used as a platform, home-related facilities are integrated by utilizing a comprehensive wiring technology, a network communication technology, a safety precaution technology, an automatic control technology, an audio and video technology and the like, an efficient management system for home facilities and family schedule affairs is constructed, and home safety, convenience, comfort, artistry and environmental friendliness are improved. Based on the traditional smart home project, the method aims to create a luxury and young future user home scene. Corresponding to the existing terminal, the terminal can be loaded with various audio and video software, such as QQ music, cool dog music and the like.
In this embodiment, the audio application refers to a software application built in the terminal, for example: QQ music, cool dog music, etc. are all audio applications, and the above-mentioned terminal refers to a device carrying an audio playing function, such as: the terminal comprises a television, a computer, a mobile phone and the like, wherein the first audio application and the second audio application enjoy the authority of starting the audio playing function of the terminal, further, the first audio application comprises but is not limited to an audio application program running in a foreground, and the second audio application comprises but is not limited to an audio application program which is used for replacing the running state of the first audio application and is in a background running state or a closing state. The terminal can detect whether the first audio application is switched to the second audio application, and the mute switching module is closed when the automatic backup checking mechanism is abnormal.
Optionally, the terminal further includes a detection multi-application switching module, configured to acquire a key jump event of a foreground active page of a foreground application packet, and when the terminal detects a confirmation key of a switching instruction and also detects a command to start another packet name, the terminal is configured to determine that the first audio application is being switched to the second audio application; the terminal also comprises an audio data effective module used for determining whether an application packet corresponding to a software application program in the terminal has audio output; the terminal also comprises a mute switching module which is used for switching the mute mode of the terminal.
Step S200, when the first audio application is switched to the second audio application, the terminal starts a mute mode.
In this embodiment, when the terminal detects that the first audio application is to be switched to the second audio application, the terminal controls the built-in mute switching module to enter the mute mode, and it is easy to understand that noise is also masked when the terminal in the mute mode switches the audio applications.
In the technical scheme of the embodiment, when the terminal plays audio by adopting a first audio application, whether the first audio application is switched to a second audio application is detected; when the first audio application is switched to the second audio application, the mute mode is turned on. Since a noise is easily generated when an application is switched between audio applications, the present invention can turn on a mute mode to prevent a user from hearing a noise when detecting that switching between audio applications is to be performed.
Referring to fig. 3, fig. 3 is a second embodiment of the volume control method for audio applications according to the present invention, and based on the first embodiment, step S100 includes:
step S101, the terminal obtains audio data output by the first audio application within a first preset time length.
In the present embodiment, the digitized sound data is audio data. The process of digitizing sound is actually a process of performing analog-to-digital conversion (ADC) on continuous analog audio signals from a terminal or other devices at a certain frequency to obtain audio data; the playing of the digitized sound is to convert the audio data into analog audio signals through digital-to-analog conversion (DAC). There are two important metrics in digitizing sound, namely Sampling frequency (Sampling Rate) and Sampling size (Sampling size). The sampling frequency is the sampling frequency in unit time, the larger the sampling frequency is, the smaller the interval between sampling points is, the more vivid the digitized sound is, but the corresponding data volume is increased, and the more difficult the processing is; the sampling size is the number of bits of a numerical value of the size of each sample value, which determines the dynamic variation range of sampling, the more the number of bits is, the more exquisite the variation degree of the recorded sound is, and the larger the obtained data amount is, optionally, the acquisition of the audio data output by the first audio application within the first preset time period can be performed based on the preset sampling frequency, the preset quantization bit number, the preset sound channel mode and the preset reading rate.
Step S102, if the data volume of the audio data is smaller than a first preset threshold value, the terminal determines that the first audio application is switched to a second audio application.
In this embodiment, optionally, how to detect whether the first audio application is being switched to the second audio application may further include: the terminal acquires audio data output by a first audio application within a certain time; the terminal determines whether the data volume of the audio data is smaller than a preset threshold value, wherein when the data volume of the audio data is smaller than the preset threshold value, the terminal determines that the first audio application is being switched to the second audio application; when the data volume of the audio data is smaller than a preset threshold, the terminal determines that the first audio application is being switched to the second audio application, for example: the terminal analyzes and accumulates audio data within 100ms of the first audio application according to bits, if the value is smaller than a preset threshold value, the packet application corresponding to the first audio application is considered to have no input sound within 100ms, and whether the first audio application is switched to the second audio application can be judged through the fact that the packet application corresponding to the first audio application has no input sound.
In the technical scheme of this embodiment, whether the user is switching the first audio application to the second audio application can be further determined by the change of the data volume of the audio data of the first audio application within the first preset time, so that the intelligent degree of the terminal of this embodiment is improved.
Referring to fig. 4, fig. 4 is a third embodiment of the volume control method for audio applications according to the present invention, and based on the first embodiment, step S100 includes:
step S103, the terminal acquires the audio data output by the first audio application within a second preset time period in a timing mode.
In this embodiment, the second preset duration is a predefined preferred value.
And step S104, when the data volume of the audio data is smaller than a second preset threshold, the terminal updates the continuous times that the data volume of the first audio application in a second preset duration is smaller than the second preset threshold.
Step S105, if the updated continuous times reach the preset times, the terminal determines that the first audio application is switched to the second audio application.
In this embodiment, optionally, how to detect whether the first audio application is being switched to the second audio application may further include: the terminal acquires audio data output by the first audio application within a second preset time period in a timing mode; the terminal determines whether the data volume of the audio data is smaller than a second preset threshold value; when the data volume is smaller than a second preset threshold value, the terminal updates the continuous times that the data volume of the first audio application in a second preset time length is smaller than the second preset threshold value; and the terminal determines whether the updated continuous times reach preset times or not, wherein the terminal determines that the first audio application is switched to the second audio application when the updated continuous times reach the preset times, wherein the preset times are predefined optimal values, and the optimal values can be obtained according to a pre-performed experiment. For example: the terminal analyzes and accumulates audio data within 100ms of a first audio application according to bits, if the value is smaller than a preset threshold value, it is determined that no sound is input to a packet application corresponding to the first audio application within 100ms, and then it is determined whether the first audio application is being switched to a second audio application by determining that no sound is input to the packet application corresponding to the first audio application, and if the first audio application or no sound is input to the packet application for 5-7 times, that is, within 500-700 ms, it is determined that the first audio application is being switched to the second audio application.
In the technical solution of this embodiment, whether the terminal is to switch the first audio application to the second audio application is further determined according to the number of times that the number of times is smaller than the second preset threshold, which can improve the intelligence degree of the terminal in this embodiment and further improve the accuracy of determining whether the terminal is to switch the first audio application to the second audio application.
In a fourth embodiment of the volume control method for audio applications of the present invention, based on the first embodiment, after step S100, the method further comprises:
the terminal acquires screen capture information of the first audio application and the second audio application.
In this embodiment, the current display interface of the first audio application of the display interface of the first audio application and the display interface of the second audio application are display interfaces when the second audio application program exits, and optionally, the screen capture information may also be icon information corresponding to the first audio application and the second audio application.
And displaying screen capture information by the terminal.
In this embodiment, in the process of switching the first audio application to the second audio application, the preset switching effect may be determined according to the screen capture information, and the switching effect matched with the time may be set according to the screen capture information, for example: and when the switching completion time is determined to be 0.3 second, playing the switching effect generated according to the screen capture information within 0.3 second.
In the technical scheme of this embodiment, in the process of switching the first audio application to the second audio application, the display effect during switching is increased through the corresponding screen capture information, so that the experience on the sense of the user is better, and the user can not feel the problem of blocking when the audio application of this embodiment is switched.
A fifth embodiment of the volume control method for audio applications according to the present invention is based on any one of the first to fourth embodiments, and the step S100 includes:
when detecting that the first audio application is switched to other applications, the terminal determines whether the other applications are audio applications;
if yes, the terminal determines that the first audio application is switched to the second audio application.
In this embodiment, optionally, how to detect whether the first audio application is being switched to the second audio application may further include: when detecting that the first audio application is switched to another application, determining whether the other application is an audio application, and optionally, whether to switch to another application may be performed according to the state of an instruction issued or received by the first audio application, for example: the method comprises the steps that when a terminal receives an instruction for indicating to close a first audio application, the first audio application can be determined to exit from a running state, and if the terminal also receives an instruction for indicating to start other applications at the moment, the first audio application can be determined to be switched to other applications; the other applications include audio application programs and non-audio application programs, the non-audio application programs include application programs incapable of making sound, and reading or editing software such as e-books and WPS is common; wherein, when the other applications are audio applications, it is determined that the first audio application is being switched to the second audio application.
In the technical solution of this embodiment, when it is determined that the first audio application is to be switched to another application, it may be further determined whether the other application is another audio application, and it may be avoided that even when the other application is a non-audio application, muting is performed, which may further result in waste of labor.
A sixth embodiment of the volume control method for audio applications according to the present invention is based on any one of the first to fifth embodiments, and the step S100 includes:
the terminal detects that an application packet corresponding to other applications comprises a program for starting an audio output module;
and if so, the terminal determines other applications as audio applications.
Optionally, how to detect whether the first audio application is being switched to the second audio application may further include: and detecting whether the application packages corresponding to the other applications comprise a program for starting the audio output module, wherein the audio output module is arranged in the terminal and can comprise a playing device, and when the application packages corresponding to the other applications comprise the program for starting the audio output module, determining that the other applications are audio applications. For example: whether the target application to be switched has the capability of outputting audio can be determined by determining the starting authority of other applications to the playing device in the terminal, and then whether the target application to be switched is an audio application can be determined.
Whether the application program is the audio application program or not can be further determined by detecting the capability of the application program for starting the audio output module, detection is not needed to be additionally added with hardware, and the implementation easiness of the embodiment is improved.
Referring to fig. 5, fig. 5 is a seventh embodiment of the volume control method for audio applications according to the present invention, and based on any one of the first to sixth embodiments, step S100 includes:
and step S107, the terminal detects a key jumping event of the terminal.
Step S108, the terminal determines whether a jumping object of the key jumping event is an audio application;
step S109, if yes, the terminal determines that the first audio application is switched to the second audio application.
Optionally, how to detect whether the first audio application is being switched to the second audio application may further include: detecting a key skipping event of the terminal, wherein the key skipping event comprises that the terminal switches a first audio application; and determining whether the jump object of the key jump event is an audio application, wherein the jump object of the key jump event is the audio application, and determining that the first audio application is switched to the second audio application.
Optionally, referring to fig. 6, fig. 6 is an eighth embodiment of the volume control method for audio application according to the present invention, and based on the seventh embodiment, step S107 includes:
step S1071, when the confirm button for switching the first audio application is selected, the terminal detects whether the confirm button for switching to the other audio application is selected.
Step S1072, when the confirm button switched to other audio applications is selected, the terminal determines that a preset button skip event occurs.
In this embodiment, optionally, how to detect whether the first audio application is being switched to the second audio application may further include: when detecting that a confirmation key for switching a first audio application is selected, the terminal detects whether confirmation keys for switching to other audio applications are selected. And when the confirmation key switched to other audio applications is selected, determining that a preset key jumping event occurs.
In the technical scheme of the embodiment, it can be determined whether the key jump event occurs only by determining that the two confirmation buttons are triggered, and then it is determined whether the terminal is switching the first audio application to the second audio application. Furthermore, whether the terminal switches the first audio application to the second audio application is determined by setting a preset actual, and the switching can be realized only by a preset detection program, so that the implementation easiness of the embodiment is improved.
Optionally, in an optional embodiment, for how to detect whether the first audio application is being switched to the second audio application, the method may further include: when a confirmation key for switching the first audio application is selected, determining that the first audio application sends a switching operation, further determining whether a target application to be switched has an identifier of the audio application, where the identifier may be a classification and determination of audio applications performed on other applications in advance, and further, a user may also perform a self-defined identifier on a non-audio application, for example: when the application program to be identified is started, an instruction is triggered to detect that the first audio application is switching to the second audio application.
In the technical scheme of the embodiment, the audio application can be identified in advance, so that the terminal can directly determine according to the identification when the audio application is judged, and the detection efficiency of audio application switching is improved.
Referring to fig. 7, fig. 7 is a ninth embodiment of the volume control method for audio applications according to the present invention, based on the first to eighth embodiments, after step S200, the method further includes:
in step S300, the terminal determines the duration of turning on the silent mode.
And step S400, when the duration is longer than the preset duration, the terminal exits the mute mode.
In this embodiment, the mute mode is a state of the terminal when the audio is output on the screen, and at this time, the terminal does not output audio, and since the switching between the audio applications does not last for too long, the time length for turning on the mute mode may be set as the time required for switching the audio applications, where the preset time may include the time required for switching the audio applications collected in advance, for example: when the first audio application is switched to the first audio application, the mute is turned on, and when the switching is completed, 0.3 second is spent in total, the duration of turning on the mute is 0.3 second, that is, the preset duration is 0.3 second.
In the technical scheme of the embodiment, the time length for starting the mute mode can be determined through the preset time, so that seamless connection between switching and mute mode switching is realized, and the intelligent degree of the terminal is improved.
Referring to the drawings, fig. 8 is a block diagram of functional units of a volume control device for audio applications according to the present invention, where the volume control device for audio applications includes a detection unit and a control unit, where:
the device comprises a detection unit, a switching unit and a switching unit, wherein the detection unit is used for detecting that a first audio application is switched to a second audio application when the first audio application is adopted to play audio;
and the control unit is used for starting the mute mode when the first audio application is switched to the second audio application.
In order to achieve the above object, the present invention provides a terminal, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the volume control method for audio applications as above when executing the computer program.
To achieve the above object, the present invention provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the volume control method of an audio application as above.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for volume control of an audio application, comprising:
when a first audio application is adopted to play audio, detecting whether the first audio application is switched to a second audio application;
and when the first audio application is switched to the second audio application, starting a mute mode.
2. The method of claim 1, wherein the detecting whether the first audio application switches to a second audio application comprises:
acquiring audio data output by the first audio application within a first preset time length; if the data volume of the audio data is smaller than a first preset threshold value, determining that the first audio application is switched to a second audio application; alternatively, the first and second electrodes may be,
acquiring audio data output by the first audio application within a second preset time period in a timing mode; when the data volume of the audio data is smaller than a second preset threshold, updating the continuous times that the data volume of the first audio application in a second preset time is smaller than the second preset threshold; and if the updated continuous times reach preset times, determining that the first audio application is switched to a second audio application.
3. The method of claim 2, wherein after the first audio application is switched to the second audio application, the method further comprises:
acquiring screen capture information of the first audio application and the second audio application;
and displaying the screen capture information.
4. The method of claim 1, wherein the detecting whether the first audio application switches to a second audio application comprises:
when the first audio application is detected to be switched into other applications, determining whether the other applications are audio applications;
and if so, determining that the first audio application is switched to a second audio application.
5. The method of claim 4, wherein the determining whether the other application is an audio application comprises:
detecting whether the application packages corresponding to the other applications comprise a program for starting an audio output module;
and if so, determining the other applications as audio applications.
6. The method of claim 1, wherein the detecting whether the first audio application switches to a second audio application comprises:
detecting a key skipping event of the terminal;
determining whether a jumping object of the key jumping event is an audio application;
and if so, determining that the first audio application is switched to a second audio application.
7. The method of any of claims 1-6, wherein after the turning on the silent mode, the method further comprises:
determining a duration for turning on the silent mode;
and when the duration is longer than the preset duration, exiting the mute mode.
8. A volume control device for audio applications, comprising:
the device comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for detecting whether a first audio application is switched to a second audio application when the first audio application is adopted to play audio;
and the control unit is used for starting a mute mode when the first audio application is switched to the second audio application.
9. A terminal, characterized in that the terminal comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the volume control method for audio applications according to any one of claims 1 to 7 when executing the computer program.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the volume control method for an audio application according to any one of claims 1 to 7.
CN202011185058.XA 2020-10-29 2020-10-29 Volume control method and device for audio application, terminal and readable storage medium Pending CN112346699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011185058.XA CN112346699A (en) 2020-10-29 2020-10-29 Volume control method and device for audio application, terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011185058.XA CN112346699A (en) 2020-10-29 2020-10-29 Volume control method and device for audio application, terminal and readable storage medium

Publications (1)

Publication Number Publication Date
CN112346699A true CN112346699A (en) 2021-02-09

Family

ID=74355905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011185058.XA Pending CN112346699A (en) 2020-10-29 2020-10-29 Volume control method and device for audio application, terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN112346699A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409094A (en) * 2008-10-30 2009-04-15 炬力集成电路设计有限公司 Method for eliminating sound effect switching noise and audio play equipment
CN103838159A (en) * 2014-03-17 2014-06-04 联想(北京)有限公司 Control method and device and electronic equipment
CN105430492A (en) * 2015-11-26 2016-03-23 深圳Tcl数字技术有限公司 Audio output control method and audio output control device
CN106201686A (en) * 2016-06-30 2016-12-07 北京小米移动软件有限公司 Management method, device and the terminal of application
CN106341726A (en) * 2016-09-12 2017-01-18 努比亚技术有限公司 Information play method and equipment thereof
CN106708533A (en) * 2016-12-30 2017-05-24 深圳天珑无线科技有限公司 Method for switching application programs and mobile terminal
CN110032357A (en) * 2019-04-09 2019-07-19 青岛海信电器股份有限公司 The output method and display equipment of the audio data of application program
CN111399742A (en) * 2020-03-13 2020-07-10 华为技术有限公司 Interface switching method and device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409094A (en) * 2008-10-30 2009-04-15 炬力集成电路设计有限公司 Method for eliminating sound effect switching noise and audio play equipment
CN103838159A (en) * 2014-03-17 2014-06-04 联想(北京)有限公司 Control method and device and electronic equipment
CN105430492A (en) * 2015-11-26 2016-03-23 深圳Tcl数字技术有限公司 Audio output control method and audio output control device
CN106201686A (en) * 2016-06-30 2016-12-07 北京小米移动软件有限公司 Management method, device and the terminal of application
CN106341726A (en) * 2016-09-12 2017-01-18 努比亚技术有限公司 Information play method and equipment thereof
CN106708533A (en) * 2016-12-30 2017-05-24 深圳天珑无线科技有限公司 Method for switching application programs and mobile terminal
CN110032357A (en) * 2019-04-09 2019-07-19 青岛海信电器股份有限公司 The output method and display equipment of the audio data of application program
CN111399742A (en) * 2020-03-13 2020-07-10 华为技术有限公司 Interface switching method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN103593230B (en) background task control method of mobile terminal and mobile terminal
CN101640765B (en) TV remote controller and working method thereof
CN105426200B (en) Communication module group firmware and plug-in unit generation method and device
CN100531336C (en) Information processing apparatus and information processing method
CN104951335A (en) Processing method and device for application program installation packages
CN110324748B (en) Wireless earphone serial port control method and device, wireless earphone and storage medium
CN104020978A (en) Processing of voice inputs
CN106201686A (en) Management method, device and the terminal of application
CN109428968B (en) Method and device for controlling terminal and storage medium
CN105682011A (en) Playback device Bluetooth module control method and device, and audio and video playing system
CN109446031B (en) Control method of terminal equipment, terminal and readable storage medium
CN111935357B (en) Multimedia playing method and equipment
CN105451070A (en) Television control method and device
CN109815348A (en) Playback method, device, storage medium and the electronic equipment of multimedia file
CN101197965A (en) Mobile terminal and method for reminding of watching television program
CN109445879A (en) Method, storage medium and the equipment of monitor video are shown with suspended window
CN104835516A (en) Music playing method and apparatus, and intelligent terminal
JP2023521199A (en) Video stream playback control method, device and storage medium
WO2005102481A1 (en) Game machine, game program and recording medium
US7818354B2 (en) Content reproduction apparatus, content reproduction method, and program
CN105323643A (en) Control device for realizing fast switching of television channels and television applications
CN105657545A (en) Video play method and apparatus
CN104902334A (en) Method and device for playing program
US20240079010A1 (en) Method for controlling remote controller to avoid loss of function through a low voltage condition, remote controller device, and non-transitory storage medium
CN112346699A (en) Volume control method and device for audio application, terminal and readable storage medium

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