CN112997507A - Audio system control method, device, terminal and computer readable storage medium - Google Patents

Audio system control method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN112997507A
CN112997507A CN201880098441.6A CN201880098441A CN112997507A CN 112997507 A CN112997507 A CN 112997507A CN 201880098441 A CN201880098441 A CN 201880098441A CN 112997507 A CN112997507 A CN 112997507A
Authority
CN
China
Prior art keywords
audio system
audio
state
control instruction
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201880098441.6A
Other languages
Chinese (zh)
Other versions
CN112997507B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai 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 Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN112997507A publication Critical patent/CN112997507A/en
Application granted granted Critical
Publication of CN112997507B publication Critical patent/CN112997507B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

An audio system control method includes: when the target application program is detected to stop playing, acquiring a first reference condition of an audio stream contained in an audio system; obtaining a control instruction corresponding to the audio system based on a first reference condition of the audio stream; and controlling the audio system to respond to the control instruction.

Description

Audio system control method, device, terminal and computer readable storage medium Technical Field
The present application relates to the field of communications technologies, and in particular, to an audio system control method, an apparatus, a terminal, and a computer-readable storage medium.
Background
The terminal has a corresponding audio system for playing the audio resource in the terminal. When playing the audio resource, the corresponding audio stream needs to be referred to, and then the playing of the audio resource is completed. However, due to the unpredictable abnormal problem in the audio system, the reference of the audio stream of the audio system is abnormal, and the audio system is silent or the sound path is abnormal, so that the audio system cannot operate normally.
Disclosure of Invention
The embodiment of the application provides an audio system control method, an audio system control device, a terminal and a computer readable storage medium.
An audio system control method comprising:
when the target application program is detected to stop playing, acquiring a first reference condition of an audio stream contained in an audio system;
obtaining a control instruction corresponding to the audio system based on a first reference condition of the audio stream; and
and controlling the audio system to respond to the control instruction.
An audio system control apparatus, the apparatus comprising:
the detection module is used for acquiring a first reference condition of the audio stream contained in the audio system when the target application program is detected to stop playing.
And the determining module is used for obtaining a control instruction corresponding to the audio system based on the first reference condition of the audio stream.
And the response module is used for controlling the audio system to respond to the control instruction.
A terminal comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to:
when the target application program is detected to stop playing, acquiring a first reference condition of an audio stream contained in an audio system;
obtaining a control instruction corresponding to the audio system based on a first reference condition of the audio stream; and
and controlling the audio system to respond to the control instruction.
A computer-readable storage medium comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to:
when the target application program is detected to stop playing, acquiring a first reference condition of an audio stream contained in an audio system;
obtaining a control instruction corresponding to the audio system based on a first reference condition of the audio stream; and
and controlling the audio system to respond to the control instruction.
According to the audio system control method, the terminal and the computer readable storage medium, when it is detected that the target application program stops playing, first reference conditions of audio streams contained in the audio system are obtained, then control instructions corresponding to the audio system are obtained according to the obtained first reference conditions of the audio streams, and the audio system is controlled to respond according to the obtained control instructions. The real-time monitoring of the running state of the audio system in the running process of the audio system is realized, and the normal running of the audio system is controlled according to the result obtained by the real-time monitoring.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be 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 application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a diagram illustrating an exemplary embodiment of an audio system control method.
FIG. 2 is a flow diagram of a method for audio system control in one embodiment.
FIG. 3 is a flow diagram of the steps taken to obtain control instructions in one embodiment.
FIG. 4 is a flowchart illustrating steps for determining whether the audio system is rebooted normally in one embodiment.
Fig. 5 is a block diagram showing the configuration of the audio system control apparatus according to one embodiment.
Fig. 6 is a schematic diagram of an architecture of a terminal in one embodiment.
Fig. 7 is a block diagram showing a part of the structure of a cellular phone according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
FIG. 1 is a diagram illustrating an exemplary embodiment of an audio system control method. As shown in fig. 1, the application environment includes a terminal 100, and when the terminal 100 detects that a target application program stops playing, first reference conditions of audio streams included in an audio system in the terminal 100 are obtained, then a control instruction corresponding to the audio system is obtained according to the obtained first reference conditions of the audio streams, and finally the audio system is controlled to respond to the obtained control instruction. It is understood that the terminal 100 may be a smart phone, a tablet computer, a personal digital assistant, etc.
In one embodiment, an audio system control method is provided, which is exemplified by being applied to the terminal 100 described above, and as shown in fig. 2, the method includes the following operations:
in operation 202, when it is detected that the target application stops playing, a first reference condition of an audio stream included in the audio system is obtained.
The target application program refers to an application program for playing the audio resource currently by the terminal.
In the using process of the terminal, when the terminal detects that the target application program stops playing, the first reference condition of the audio stream contained in the audio system of the terminal is obtained. Specifically, a corresponding audio system exists inside the terminal, and is used for controlling the terminal to manage the audio resources, including releasing the audio resources and playing the audio resources. In the application process of the terminal, the audio system in the terminal will change its state according to the state of the application program on the terminal, and in general, when the audio system is operating normally, the state of the audio system includes a playing state and a static state, where the playing state is that the audio resource is being played, and the static state is that no audio resource is being played.
In the practical application process of the terminal, the state of the audio system is in a state changing in real time, namely, the audio system is changed from a playing state to a static state and from the static state to the playing state, and unpredictable abnormal conditions may occur in the actual operation process of the terminal or the audio system, so that the operation of the terminal or the audio system is abnormal, and the audio system has no sound when playing audio resources. Therefore, when the target application program is detected to stop playing, the first reference condition of the audio stream contained in the audio system in the terminal is acquired so as to determine whether the audio system is in a normal state.
In operation 204, a control instruction corresponding to the audio system is obtained based on the first reference condition of the audio stream.
Specifically, after a first reference condition of an audio stream contained in the audio system is obtained, a control instruction for controlling the operation of the audio system is obtained according to the first reference condition of the audio stream.
Upon detecting that the target application stops playing, i.e., completes playing, the audio system will enter a mute state, i.e., transition from the play state to the mute state. In general, when there are other applications that need to play audio resources in a terminal, an audio system will transition from a mute state to a play state, and play audio resources by referring to a corresponding audio stream. However, in the actual use process, when the target application stops playing, after the first reference condition of the audio stream included in the audio system is obtained, the corresponding control instruction is obtained according to the first reference condition of the audio stream, so as to control the operation of the audio system.
After the target application stops playing, the audio system will have two situations, one is that there is an application that needs to play the audio resource, and the other is that there is no application that needs to play the audio resource. When an application program needing to play the audio resource exists, the audio stream associated with the reference program is directly referred to realize the playing of the corresponding audio resource, and when the application program needing to play the audio resource does not exist, the audio system enters a mute state. When a control instruction corresponding to the audio system is obtained according to the obtained first reference condition of the audio stream of the audio system, it is further required to determine whether an application program in a playing state exists currently, that is, whether an application program that needs to play an audio resource exists.
At operation 206, the audio system is controlled to respond to the control instructions.
After the terminal determines the obtained control instruction of the audio system, the audio system is controlled to respond to the obtained control instruction. When the audio system is in a normal state, the control instruction corresponding to the audio system may be to play the audio resource, or may be to control the audio system to be in a state to be run, and to make the audio system play the corresponding audio resource when the audio resource is played, and when the audio system is in an abnormal state, the audio system is controlled to restart, so as to complete abnormal repair of the audio system, and make the audio system change from the abnormal state to a normal state.
In this embodiment, when it is detected that the target application program stops playing, first reference conditions of audio streams included in the audio system are obtained first, then a control instruction corresponding to the audio system is obtained according to the obtained first reference conditions of the audio streams, and the audio system is controlled to respond according to the obtained control instruction. The real-time monitoring of the running state of the audio system in the running process of the audio system is realized, and the normal running of the audio system is controlled according to the result obtained by the real-time monitoring.
In one embodiment, in an audio system control method, when it is detected that a target application stops playing, a first reference condition of an audio stream reported by an audio system is obtained. Specifically, when it is detected that the target application stops playing, a first reference number of audio streams contained by the audio system is determined.
Specifically, for an audio system in the terminal, when the first reference number of the audio streams included in the audio system is zero, it is indicated that the audio system is in a mute state, and when the first reference number of the audio streams included in the audio system is not zero, it is necessary to determine state information of the audio system according to whether an application program that needs to play audio resources exists in the audio system at present.
When the audio system is in a normal state, the referenced number of the audio streams will not be zero when the playing application program exists in the audio system, and the referenced number of the audio streams will be zero when the playing application program does not exist in the audio system. In the case of a normal operation of the audio system, it is relevant whether there is an audio asset to play and whether the audio stream is referenced. Therefore, in order to control the normal operation of the audio system, when determining whether an application program for playing an audio resource exists, it is further required to obtain a first reference condition, specifically, the number of references, of the audio streams included in the audio system.
In an embodiment, as shown in fig. 3, in operation 202, obtaining a control instruction corresponding to an audio system based on a first reference condition of an audio stream includes:
in operation 302, status information of an audio system is obtained.
The state information refers to a state of the audio system, and the specific state includes a still state and a playing state.
Before the terminal obtains the control instruction corresponding to the audio system according to the first reference condition of the audio, the terminal also needs to determine the state information of the audio system, so that when the terminal detects that the target application program stops playing, the state information of the audio system is obtained.
Further, obtaining status information of the audio system includes: whether an application program in a to-be-played state exists in an audio system is detected.
When the state information of an audio system in the terminal is obtained and determined, whether an application program in a to-be-played state exists in the audio system is monitored, wherein when the application program in the to-be-played state does not exist in the audio system, the audio system is determined to be in a static state; and when determining that the application program in the to-be-played state exists in the audio system, determining that the audio system is in the playing state. It should be noted that the mute state refers to the operation without any audio-related behavior, and the play state refers to the operation with any one or more audio-related behaviors, where the audio-related behaviors include the play of audio resources, the setting of audio mode of the recording acquisition application, and the like.
In general, after the audio resource associated with the target application is played, if there is an application that needs to play the audio resource, the first referencing condition of the audio stream in the audio system is in a normal state, and the audio resource is played by directly referencing the associated audio stream. When the application program needing to play the audio resource does not exist, the audio stream in the audio system cannot be referred, and if the condition that the audio stream is referred is detected, the audio system is abnormal.
In operation 304, a control instruction corresponding to the audio system is obtained based on the state information of the audio system and the first reference number of the audio stream.
Specifically, a control instruction corresponding to the audio system is obtained according to the state information of the audio system and the first reference number of the audio stream. In the process of controlling the operation of the audio system, it is not that the reference of the audio stream indicates that the audio system is in the state of playing the audio resource, and may also be in the abnormal state, so when a control instruction of the audio system is obtained, it needs to be determined according to the actual operation state of the audio system and a first reference condition of the audio stream contained in the audio system, where the first reference condition is specifically a first reference number of the audio stream contained in the audio system.
The state information of the audio system comprises a playing state and a mute state, and when the audio system is in the playing state, the corresponding audio stream is quoted to realize the playing of the audio resource. After the target application finishes playing, that is, after the target application stops playing, the audio resource needing to be played is directly played. When the audio system is in a mute state, normally the audio streams contained in the audio system will not be referenced, i.e. the amount of audio referenced is zero. When the audio system normally operates, a corresponding control instruction is obtained according to the requirements of the terminal, for example, a corresponding audio resource is played; and when the audio system is in an abnormal state, obtaining a control instruction for controlling the audio system to restart so as to control the audio system to restart.
In this embodiment, when obtaining the control instruction of the audio system, first obtain the state information of the audio system, and then obtain the corresponding control instruction according to the obtained state information of the audio system and the first reference number of the included audio streams. The method and the device realize real-time monitoring of the first reference number of each audio stream in the audio system in the running process of the audio system, and then determine whether the audio system is abnormal or not according to the state information of the audio system, so as to obtain the corresponding control instruction. The normal operation of the audio system is effectively ensured.
In one embodiment, a control instruction corresponding to an audio system is obtained based on state information of the audio system and a first reference number of an audio stream. Specifically, when the audio system is in a static state, obtaining a control instruction corresponding to the audio system based on a first reference number of audio streams of the audio system; when the audio system is in a playing state, the audio system is determined to be in a normal state, and a control instruction for controlling the audio system to play the audio contained in the application program in the state to be played is obtained.
Specifically, when the target application stops playing, the state of the audio system in the terminal may be a playing state or a mute state. When the state of the audio system is the playing state, it indicates that there is an audio resource that needs to be played at this time, that is, when the target application program plays audio, there is an application program in the state to be played in the terminal, so the obtained control instruction at this time is to control the playing application program to play the audio resource, and at this time, the audio system is in the normal state. When the program in the to-be-played state exists in the terminal, the audio system does not directly enter the mute state, but directly plays the audio resource contained in the to-be-played application program after the target application program finishes playing.
After the target application stops playing, if there is no application in the terminal in the state to be played, the audio system in the terminal will enter a mute state, and at this time, there will be no case where the audio stream contained in the audio system is referred to. When the situation that the audio stream in the audio system is referred is detected, it is indicated that the audio system is abnormal, and then the audio system needs to be controlled to restart and repair, so that a control instruction for controlling the audio system to restart is obtained.
In one embodiment, as shown in fig. 4, when the obtained control instruction is to control the audio system to restart, the provided audio system control method further includes:
in operation 402, when it is detected that the audio system is restarted and completed, a second reference condition of the audio stream contained in the audio system is obtained.
Since the terminal may encounter an unpredictable abnormal problem during the operation process, which may cause an abnormal condition in the audio system, after the audio system is restarted, the abnormal condition of the audio system may not be repaired, and then, after the audio system is restarted, the audio system needs to be correspondingly detected again to determine whether the abnormal condition of the audio system is repaired. Specifically, when the completion of the restart of the audio system is detected, a second reference condition of the audio stream included in the audio system is acquired to be used as a basis for determining whether the restart repair of the audio system is successful.
At operation 404, it is determined whether an anomaly exists in the audio system based on the second referencing case of the audio stream.
Specifically, after a second reference condition of the audio stream contained in the audio system of the terminal is obtained, whether the audio system has an abnormality or not is determined according to the second reference condition. In practical application, the reference condition of the audio stream represents the referenced number of the audio stream, after the audio system is restarted, the audio system is in a mute state at the moment, if no abnormality exists in the audio system at the moment, the audio stream is not referenced, if an abnormality exists in the audio system, the audio stream is referenced, and the referenced number of the audio stream is not zero at the moment.
Further, when determining whether the audio system has an abnormality based on the second reference condition of the audio stream, the method includes: when the second reference condition is that the second reference quantity of the audio stream is zero, determining that the audio system has no abnormality; and when the second reference condition is that the second reference number of the audio stream is not zero, determining that the audio system has an abnormality. Specifically, since the audio system is restarted to repair the audio system, after the restart is completed, the audio system is actually in a mute state, that is, at this time, no application program that needs to play audio resources in the terminal is in an operating state, and at this time, if there is no abnormality in the audio system, the reference number of the audio stream is zero. That is, when the referenced number of the audio stream is detected to be zero, it is determined that the audio system is not abnormal, and when the referenced number of the audio stream is detected to be not zero, it is determined that the audio system is abnormal, that is, the restart of the audio system does not complete the repair of the abnormal problem.
At operation 406, when it is determined that the audio system is abnormal, a prompt message for the abnormality of the audio system is issued.
Specifically, when an abnormality in the audio system is detected and determined, since the automatic restart of the audio system does not repair the abnormality, a prompt message of the abnormality in the audio system is sent when the abnormality in the audio system is determined. The specific implementation manner of the prompt information is not limited, and the prompt information may be a text prompt or a vibration prompt.
In this embodiment, the audio system is restarted to repair the abnormal problem existing in the audio system, after the audio system is restarted, it is further determined whether the audio system is abnormal at this time, and if it is determined that the audio system is abnormal after the audio system is restarted, a prompt message of the corresponding audio system abnormality is sent out, so that the user can further perform abnormal repair, it can be more effectively ensured whether the audio system is in a normal operation state, and when the abnormality cannot be automatically repaired, the user can be timely discovered to remind the user.
It should be understood that, although the operations in the above-described flowcharts are sequentially shown as indicated by arrows, the operations are not necessarily performed sequentially as indicated by the arrows. The operations may be performed in other sequences without a strict order of limitation unless explicitly stated otherwise. Moreover, at least a portion of the operations in the various flowcharts described above may include multiple sub-operations or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the sub-operations or stages is not necessarily sequential, but may be performed in turn or alternately with other operations or at least a portion of the sub-operations or stages of other operations.
Fig. 5 is a block diagram showing the configuration of an audio system control apparatus according to an embodiment, as shown in fig. 5, the apparatus including: a detection module 502, a determination module 504, and a response module 506, wherein:
the detecting module 502 is configured to, when it is detected that the target application stops playing, obtain a first reference condition of an audio stream included in the audio system.
The determining module 504 is configured to obtain a control instruction corresponding to the audio system based on the first reference condition of the audio stream.
A response module 506 for controlling the audio system to respond to the control instruction.
In one embodiment, a detection module is provided that is further configured to determine a first number of references to an audio stream included in the audio system when the target application is detected to stop playing.
In one embodiment, a determination module is provided that includes a state acquisition module and an instruction determination module. The state obtaining module is used for obtaining state information of the audio system, and the instruction determining obtaining module is used for obtaining a control instruction corresponding to the audio system based on the state information of the audio system and the first reference number of the audio stream.
In one embodiment, a status acquisition module is provided and includes a first detection module and a determination module. The audio system comprises a first detection module, a judgment module and a second detection module, wherein the first detection module is used for detecting whether an application program in a to-be-played state exists in the audio system, and the judgment module is used for determining that the audio system is in a static state when the application program in the to-be-played state does not exist in the audio system; and when the audio system is determined to have the application program in the state to be played, determining that the audio system is in the playing state.
In one embodiment, an instruction determining module is further configured to obtain a control instruction corresponding to an audio system based on a first reference number of an audio stream of the audio system when the audio system is in a static state; and when the audio system is in a playing state, determining that the audio system is in a normal state, and obtaining a control instruction for controlling the audio system to play the audio contained in the application program in the state to be played.
In one embodiment, an instruction determining module is further provided for determining a control instruction corresponding to the audio system according to the reference number when the audio system is in a static state; wherein when the first reference number is zero, determining that the audio system is in a normal state; and when the first reference number is not zero, determining that the audio system is in an abnormal state, and obtaining a control instruction for controlling the restart of the audio system.
In one embodiment, the audio system control device further includes a second detection module, an abnormality determination module, and a prompt module, where the second detection module is configured to obtain a second reference condition of an audio stream included in the audio system when it is detected that the audio system is restarted, the abnormality determination module is configured to determine whether the audio system is abnormal based on the second reference condition of the audio stream, and the prompt module is configured to send a prompt message indicating that the audio system is abnormal when it is determined that the audio system is abnormal.
In one embodiment, an anomaly determination module is provided that is further configured to determine that an anomaly is not present in the audio system when the second number of references in the audio stream is zero; and when the second reference condition is that the second reference number of the audio stream is not zero, determining that the audio system has an abnormality.
For the specific definition of the audio system control device, reference may be made to the above definition of the audio system control method, which is not described herein again. The respective modules in the audio system control apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the terminal or the server, and can also be stored in a memory in the terminal or the server in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 6, a schematic diagram of the internal structure of a terminal is provided. The terminal includes a processor, a memory, a display, and a network interface connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole terminal. The memory is used for storing data, programs, instruction codes and/or the like, and at least one computer program is stored on the memory, and the computer program can be executed by the processor to realize the audio system control method suitable for the terminal provided by the embodiment of the application. The Memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random-Access-Memory (RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor for implementing an audio system control method provided by various embodiments of the present application. The internal memory provides a cached execution environment for the operating system and computer programs in the non-volatile storage medium. The display may be used to display information, e.g., to display various interfaces, etc. The network interface may be an ethernet card or a wireless network card, etc. for communicating with an external terminal, such as communicating with a server.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the terminal or server to which the present application applies, and that a particular terminal or server may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
The embodiment of the application also provides a terminal. As shown in fig. 7, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. Taking a terminal as a mobile phone as an example:
fig. 7 is a block diagram of a partial structure of a mobile phone related to a terminal according to an embodiment of the present application. Referring to fig. 7, the handset includes: radio Frequency (RF) circuitry 1110, memory 1120, input unit 730, display unit 740, sensor 750, audio circuitry 760, wireless fidelity (WiFi) module 770, processor 780, and power supply 790. Those skilled in the art will appreciate that the handset configuration shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 710 may be used for receiving and transmitting signals during information transmission or communication, and may receive downlink information of a base station and then process the downlink information to the processor 780; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 710 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 720 may be used to store software programs and modules and may also be used to store an application installation package, and the processor 780 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 720. The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area can store data (such as audio data, address book and the like) configured according to the use of the mobile phone and the like. Further, the memory 720 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 730 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 700. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, which may also be referred to as a touch screen, can collect touch operations of a user (e.g., operations of the user on or near the touch panel 731 by using a finger, a stylus, or any other suitable object or accessory) thereon or nearby, and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 731 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 780, and can receive and execute commands from the processor 780. In addition, the touch panel 731 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 730 may include other input devices 732 in addition to the touch panel 731. In particular, other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 740 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 740 may perform display according to resolution. The display unit 740 may include a display panel 741. In one embodiment, the Display panel 741 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 731 can cover the display panel 741, and when the touch panel 731 detects a touch operation on or near the touch panel 731, the touch operation is transmitted to the processor 780 to determine the type of the touch event, and then the processor 780 provides a corresponding visual output on the display panel 741 according to the type of the touch event. Although the touch panel 731 and the display panel 741 are two independent components in fig. 7 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 731 and the display panel 741 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 700 may also include at least one sensor 750, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 741 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 741 and/or a backlight when the mobile phone is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
Audio circuitry 760, speaker 761, and microphone 762 may provide an audio interface between a user and a cell phone. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 and output; on the other hand, the microphone 762 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 760, and then outputs the audio data to the processor 780 for processing, and then the processed audio data may be transmitted to another mobile phone through the RF circuit 710, or outputs the audio data to the memory 720 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 770, and provides wireless broadband Internet access for the user. Although fig. 7 shows WiFi module 770, it is understood that it does not belong to the essential components of handset 700 and may be omitted as desired.
The processor 780 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 720 and calling data stored in the memory 720, thereby integrally monitoring the mobile phone. Processor 780 may also perform application updates according to the application installation package. In one embodiment, processor 780 may include one or more processing units. In one embodiment, processor 780 may integrate an application processor and a modem processor, where the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 780.
The handset 700 also includes a power supply 790 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 780 via a power management system that may be used to manage charging, discharging, and power consumption.
In one embodiment, the cell phone 700 may also include a camera, a bluetooth module, and the like.
In this embodiment, the processor 780 performs the steps of the audio system control method by running the software programs and modules stored in the memory 720 while the handset 700 is in use.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the audio system control method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform an audio system control method.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

  1. An audio system control method, the method comprising:
    when the target application program is detected to stop playing, acquiring a first reference condition of an audio stream contained in an audio system;
    obtaining a control instruction corresponding to the audio system based on a first reference condition of the audio stream; and
    and controlling the audio system to respond to the control instruction.
  2. The method of claim 1, wherein obtaining a first reference to an audio stream contained in an audio system when the target application is detected to stop playing comprises:
    when it is detected that the target application stops playing, a first reference number of audio streams contained by the audio system is determined.
  3. The method according to claim 2, wherein obtaining the control instruction corresponding to the audio system based on the first reference condition of the audio stream comprises:
    acquiring state information of the audio system; and
    and obtaining a control instruction corresponding to the audio system based on the state information of the audio system and the first reference number of the audio stream.
  4. The method of claim 3, wherein the obtaining the status information of the audio system comprises:
    detecting whether an application program in a to-be-played state exists in the audio system;
    when determining that the application program in the to-be-played state does not exist in the audio system, determining that the audio system is in a static state; and
    and when determining that the application program in the to-be-played state exists in the audio system, determining that the audio system is in the playing state.
  5. The method according to claim 3 or 4, wherein obtaining the control instruction corresponding to the audio system based on the state information of the audio system and the first reference number of the audio stream comprises:
    when the audio system is in a static state, obtaining a control instruction corresponding to the audio system based on a first reference quantity of audio streams of the audio system; and
    and when the audio system is in a playing state, determining that the audio system is in a normal state, and obtaining a control instruction for controlling the audio system to play the audio contained in the application program in the state to be played.
  6. The method of claim 5, wherein obtaining the control instruction corresponding to the audio system based on the first reference number of the audio streams of the audio system when the audio system is in the still state comprises:
    when the audio system is in a static state, determining a control instruction corresponding to the audio system according to the reference number; wherein the content of the first and second substances,
    when the first reference number is zero, determining that the audio system is in a normal state; and
    and when the first reference number is not zero, determining that the audio system is in an abnormal state, and obtaining a control instruction for controlling the restart of the audio system.
  7. The method of claim 1, wherein when the control instruction is to control the audio system to restart, the method further comprises:
    when the audio system is detected to be restarted and completed, acquiring a second reference condition of the audio stream contained in the audio system;
    determining whether an abnormality exists in the audio system based on a second reference condition of the audio stream; and
    and when the audio system is determined to be abnormal, sending out prompt information of the abnormality of the audio system.
  8. The method of claim 7, wherein the determining whether the audio system has an anomaly based on the second reference case comprises:
    when the second reference condition is that the second reference number of the audio stream is zero, determining that the audio system has no abnormality; and
    and when the second reference condition is that the second reference number of the audio stream is not zero, determining that the audio system has an abnormality.
  9. An audio system control apparatus, characterized in that the apparatus comprises:
    the detection module is used for acquiring a first reference condition of an audio stream contained in the audio system when the target application program is detected to stop playing;
    the determining module is used for obtaining a control instruction corresponding to the audio system based on the first reference condition of the audio stream;
    and the response module is used for controlling the audio system to respond to the control instruction.
  10. A terminal comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, performs the steps of the audio system control method of any of claims 1 to 8.
  11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the audio system control method according to any one of claims 1 to 8.
CN201880098441.6A 2018-11-21 2018-11-21 Audio system control method, device, terminal and computer readable storage medium Active CN112997507B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/116780 WO2020103052A1 (en) 2018-11-21 2018-11-21 Audio system control method and apparatus, terminal, and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112997507A true CN112997507A (en) 2021-06-18
CN112997507B CN112997507B (en) 2022-12-09

Family

ID=70773747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880098441.6A Active CN112997507B (en) 2018-11-21 2018-11-21 Audio system control method, device, terminal and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN112997507B (en)
WO (1) WO2020103052A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063968A (en) * 2021-11-11 2022-02-18 北京字节跳动网络技术有限公司 Audio device selection method and device and electronic device
CN117674370B (en) * 2024-02-01 2024-05-07 杭州宇谷科技股份有限公司 Discharging control method and system of battery

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486657A (en) * 2014-11-28 2015-04-01 四川长虹电器股份有限公司 Control method of player and system
CN107968960A (en) * 2016-10-20 2018-04-27 中兴通讯股份有限公司 A kind of backstage audio and video playing control method and device
JP2018072595A (en) * 2016-10-31 2018-05-10 株式会社第一興商 Karaoke system
CN108345518A (en) * 2018-03-12 2018-07-31 张立江 A kind of data recovery system after software crash and its restoration methods
CN108509176A (en) * 2018-04-10 2018-09-07 Oppo广东移动通信有限公司 A kind of method, apparatus of playing audio-fequency data, storage medium and intelligent terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486657A (en) * 2014-11-28 2015-04-01 四川长虹电器股份有限公司 Control method of player and system
CN107968960A (en) * 2016-10-20 2018-04-27 中兴通讯股份有限公司 A kind of backstage audio and video playing control method and device
JP2018072595A (en) * 2016-10-31 2018-05-10 株式会社第一興商 Karaoke system
CN108345518A (en) * 2018-03-12 2018-07-31 张立江 A kind of data recovery system after software crash and its restoration methods
CN108509176A (en) * 2018-04-10 2018-09-07 Oppo广东移动通信有限公司 A kind of method, apparatus of playing audio-fequency data, storage medium and intelligent terminal

Also Published As

Publication number Publication date
CN112997507B (en) 2022-12-09
WO2020103052A1 (en) 2020-05-28

Similar Documents

Publication Publication Date Title
CN112703714B (en) Application processing method and device, computer equipment and computer readable storage medium
CN106371964B (en) Method and device for prompting message
CN109445917B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN108616653B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN107484154B (en) Data switching method and device, terminal and computer readable storage medium
CN109284144B (en) Fast application processing method and mobile terminal
CN108541013B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN107786424B (en) Audio and video communication method, terminal and server
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN109992425B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN108334345B (en) Application processing method and device, readable storage medium and mobile terminal
CN112997507B (en) Audio system control method, device, terminal and computer readable storage medium
CN110018886B (en) Application state switching method and device, electronic equipment and readable storage medium
US11150913B2 (en) Method, device, and terminal for accelerating startup of application
CN106454953B (en) Flow control method, device and terminal
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
CN110430252B (en) Resource data processing method and device, equipment and readable storage medium
CN109660657B (en) Application program control method and device
CN108712281B (en) Method, device, storage medium and terminal for triggering detection management application update
CN105094869B (en) Target program determines method and device
CN109992360B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN112997132A (en) Application freezing method and device and electronic equipment
CN104717283A (en) File downloading control method, terminal and logic processing server
CN109388487B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN110427305B (en) Battery leakage processing method and device, electronic equipment 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
GR01 Patent grant
GR01 Patent grant