CN108683796B - Audio output power control method, mobile terminal and storage medium - Google Patents

Audio output power control method, mobile terminal and storage medium Download PDF

Info

Publication number
CN108683796B
CN108683796B CN201810310906.1A CN201810310906A CN108683796B CN 108683796 B CN108683796 B CN 108683796B CN 201810310906 A CN201810310906 A CN 201810310906A CN 108683796 B CN108683796 B CN 108683796B
Authority
CN
China
Prior art keywords
output power
audio
mobile terminal
epd
epc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810310906.1A
Other languages
Chinese (zh)
Other versions
CN108683796A (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.)
Xiamen Jiupin Sesame Information Technology Co ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201810310906.1A priority Critical patent/CN108683796B/en
Publication of CN108683796A publication Critical patent/CN108683796A/en
Application granted granted Critical
Publication of CN108683796B publication Critical patent/CN108683796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • 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
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control
    • H03G3/30Automatic control in amplifiers having semiconductor devices
    • H03G3/3005Automatic control in amplifiers having semiconductor devices in amplifiers suitable for low-frequencies, e.g. audio amplifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses an audio output power control method, a mobile terminal and a storage medium, wherein the mobile terminal detects the sound size of a playing file every other first preset time and acquires the corresponding output power of the audio of the mobile terminal according to the sound size; the mobile terminal caches the obtained output power and the corresponding timestamp, and obtains the output power EPC of the audio with the latest timestamp in the cached timestamp every second preset time; acquiring the output power EPD of the audio set last time, and judging the sizes of the output power EPD and the output power EPC; the output power of the audio is set to EPD-1 when the EPD is greater than the EPC, and to EPD +1 when the EPD is less than the EPC. The invention can ensure that the audio output power does not jump during playing, prevent the fast-changing current from interfering other modules of the mobile terminal and avoid the situation that the jump of the instantaneous output current of the battery easily causes the power-off shutdown of the mobile terminal.

Description

Audio output power control method, mobile terminal and storage medium
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to an audio output power control method, a mobile terminal, and a storage medium.
Background
At present, the importance of multimedia applications of mobile terminals is gradually increasing, and users have higher requirements on the sound quality and sound effect of the mobile terminals. On the other hand, the use of audio is one of the most basic functions of the mobile terminal, for example, the traditional audio applications include incoming call ring, message ring, and later, with the increase of the functions of the mobile terminal, the audio applications are more related to aspects of the mobile terminal, such as playing sound of video music and the like, and various sound effects with high quality. In practical use, when a mobile terminal plays music downloaded by a network, in the playing process, the original sound pitch of a file is low and directly acts on the output power of an audio circuit, the output power is high when the sound pitch is high, the output power is low when the sound is low, if sound is suddenly increased or reduced, the fast conversion of the played power can be directly influenced in the middle of the music file, the power change is reflected on current, the fast current change easily interferes other modules of the mobile terminal, and on the other hand, the power failure of the mobile terminal is easily caused by the jump of the instant output current of a battery.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention provides an audio output power control method, a mobile terminal and a storage medium, aiming at solving the technical problem that when a user uses the audio function of the mobile terminal, even if the downloaded file has defects, the mobile terminal can still ensure that the audio output power cannot jump during playing, so that the fast-changing current is prevented from interfering other modules of the mobile terminal, and the situation that the power-down shutdown of the mobile terminal is easily caused by the jump of the instantaneous output current of a battery is avoided.
The technical scheme adopted by the invention for solving the technical problem is as follows:
an audio output power control method is applied to a mobile terminal to control audio signal output, wherein the audio output power control method comprises the following steps:
the mobile terminal detects the sound size of a playing file every a first preset time, and acquires the corresponding output power of the mobile terminal audio according to the sound size;
the mobile terminal caches the obtained output power and the corresponding timestamp, and obtains the output power EPC of the audio with the latest timestamp in the cached timestamp every second preset time;
acquiring the output power EPD of the audio set last time, and judging the sizes of the output power EPD and the output power EPC;
the output power of the audio is set to EPD-1 when the EPD is greater than the EPC, and to EPD +1 when the EPD is less than the EPC.
The audio output power control method further includes, after obtaining the output power EPD of the audio set last time and determining the magnitudes of the output power EPD and the output power EPC:
when the EPD is equal to the EPC, the output power of the audio is controlled not to be adjusted, and the output power of the audio is kept to be the EPD.
The audio output power control method, wherein the mobile terminal detects the sound size of the playing file every a first preset time, and before obtaining the corresponding output power of the mobile terminal audio according to the sound size, the method further comprises:
the corresponding relation between the sound size SPA of the playing file and the output power EPA of the mobile terminal audio is established in advance as follows:
-10dbm ≥ SPA > -20dbm,EPA = 2
-20dbm ≥ SPA > -30dbm,EPA = 3
-30dbm ≥ SPA > -40dbm,EPA = 4
-40dbm ≥ SPA > -50dbm,EPA = 5
-50dbm ≥ SPA > -60dbm,EPA = 6
-60dbm ≥ SPA > -70dbm,EPA = 7
-70dbm ≥ SPA > -80dbm,EPA = 8
-80dbm ≥ SPA > -90dbm,EPA = 9
-90dbm ≥ SPA,EPA = 10
where the output power EPA indicates the power level and a larger value indicates a higher audio output power.
The audio output power control method includes that the mobile terminal detects the sound size of a playing file every first preset time, and acquiring the corresponding output power of the audio of the mobile terminal according to the sound size specifically includes:
the mobile terminal is provided with a first timer for triggering and detecting the sound size of a played file at fixed time, and the first timer sets overtime as first preset time;
and when the first timer reaches the overtime, detecting the sound size of the playing file, and acquiring the corresponding output power of the mobile terminal audio according to the corresponding relation between the sound size and the output power.
The audio output power control method includes that the mobile terminal caches the obtained output power and the corresponding timestamp, and obtains the output power EPC of the audio with the latest timestamp in the cached timestamp every second preset time, specifically including:
the mobile terminal caches the acquired output power and the timestamp of the corresponding current time;
the mobile terminal is provided with a second timer for acquiring the output power of the audio with the latest timestamp at fixed time, and the second timer sets the timeout time as a second preset time;
and when the second timer reaches the timeout time, acquiring the output power EPC of the audio with the latest timestamp in the cache.
The audio output power control method includes the steps of obtaining the output power EPD of the audio set last time, and determining the output power EPD and the output power EPC, where the steps include:
when detecting that the mobile terminal acquires the output power EPC of the audio with the latest timestamp, the mobile terminal acquires the output power EPD of the audio set last time according to the timestamp;
the mobile terminal compares the output power EPC of the audio with the latest timestamp with the output power EPD of the audio set last time;
and judging the sizes of the output power EPD and the output power EPC, and setting the output power of the audio in the next step according to the judgment result.
The audio output power control method, wherein the setting of the audio output power to EPD-1 when the EPD is larger than the EPC, and setting of the audio output power to EPD +1 when the EPD is smaller than the EPC specifically includes:
when the EPD is judged to be larger than the EPC, the output power of the audio is set to be EPD-1, and the EPD-1 is used as the output power of the current audio;
when the EPD is judged to be smaller than the EPC, the output power of the audio is set to EPD +1, and the EPD +1 is taken as the output power of the current audio.
The audio output power control method, wherein the first preset time is 100 milliseconds; the second preset time is 20 milliseconds.
A mobile terminal, wherein the mobile terminal comprises: a memory, a processor and an audio output power control program stored on the memory and executable on the processor, the audio output power control program when executed by the processor implementing the steps of the audio output power control method as described above.
A storage medium, wherein the storage medium stores an audio output power control program which, when executed by a processor, implements the steps of the audio output power control method as described above.
The invention discloses an audio output power control method, a mobile terminal and a storage medium, wherein the method comprises the following steps: the mobile terminal detects the sound size of a playing file every a first preset time, and acquires the corresponding output power of the mobile terminal audio according to the sound size; the mobile terminal caches the obtained output power and the corresponding timestamp, and obtains the output power EPC of the audio with the latest timestamp in the cached timestamp every second preset time; acquiring the output power EPD of the audio set last time, and judging the sizes of the output power EPD and the output power EPC; the output power of the audio is set to EPD-1 when the EPD is greater than the EPC, and to EPD +1 when the EPD is less than the EPC. When the user uses the audio function of the mobile terminal, even if the downloaded file has defects, the mobile terminal can still ensure that the audio output power does not jump during playing, prevent the fast-changing current from interfering other modules of the mobile terminal, and avoid the situation that the power-off shutdown of the mobile terminal is easily caused by the jump of the instantaneous output current of the battery.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the audio output power control method of the present invention;
FIG. 2 is a flowchart of step S10 in the preferred embodiment of the audio output power control method according to the invention;
FIG. 3 is a flowchart of step S20 in the preferred embodiment of the audio output power control method according to the invention;
FIG. 4 is a flowchart of step S30 in the preferred embodiment of the audio output power control method according to the invention;
FIG. 5 is a flowchart of step S40 in accordance with the preferred embodiment of the present invention;
FIG. 6 is a diagram illustrating an operating environment of a mobile terminal according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, the audio output power control method according to the preferred embodiment of the present invention includes the following steps:
and step S10, the mobile terminal detects the sound size of the playing file every other first preset time, and acquires the corresponding output power of the mobile terminal audio according to the sound size.
Specifically, the step S10 is preceded by: the corresponding relation between the sound size SPA of the playing file and the output power EPA of the mobile terminal audio is established in advance as follows:
-10dbm ≥ SPA > -20dbm,EPA = 2
-20dbm ≥ SPA > -30dbm,EPA = 3
-30dbm ≥ SPA > -40dbm,EPA = 4
-40dbm ≥ SPA > -50dbm,EPA = 5
-50dbm ≥ SPA > -60dbm,EPA = 6
-60dbm ≥ SPA > -70dbm,EPA = 7
-70dbm ≥ SPA > -80dbm,EPA = 8
-80dbm ≥ SPA > -90dbm,EPA = 9
-90dbm ≥ SPA,EPA = 10
wherein, the output power EPA represents the gear of the power, and the larger the value is, the higher the audio output power is; it should be noted that, a range of an SPA in the above data corresponds to a value of EPA, and for convenience of description herein, the value of EPA is represented by a number from 1 to 10, which is similar to a shift such as screen brightness, and is unitless, but is a relative size meaning, and a larger number indicates a higher audio output power.
Wherein the first preset time is preferably 100 milliseconds.
Please refer to fig. 2, which is a flowchart of step S10 in the audio output power control method according to the present invention.
As shown in fig. 2, the step S10 includes:
s11, the mobile terminal sets a first timer for timing and triggering detection of the sound size of the played file, and the first timer sets the overtime time as a first preset time;
and S12, when the first timer reaches the overtime, detecting the sound size of the playing file, and acquiring the output power of the corresponding mobile terminal audio according to the corresponding relation between the sound size and the output power.
And step S20, the mobile terminal caches the obtained output power and the corresponding time stamp, and obtains the output power EPC of the audio with the latest time stamp in the cached time stamp every other second preset time.
Specifically, the mobile terminal puts the value of EPA and the corresponding timestamp TAA (where the timestamp TAA represents the current time, that is, a time point) obtained in step S10 into a cache module for caching; and the mobile terminal obtains the value of the output power EPA of the audio with the latest timestamp TAA in the cache module every second preset time, and for convenience of the following description, the value is recorded as the output power EPC of the audio with the latest timestamp TAA.
Wherein the second preset time is preferably 20 milliseconds;
please refer to fig. 3, which is a flowchart of step S20 in the audio output power control method according to the present invention.
As shown in fig. 3, the step S20 includes:
s21, the mobile terminal caches the acquired output power and the corresponding timestamp of the current time;
s22, the mobile terminal sets a second timer for obtaining the output power of the audio with the latest timestamp at fixed time, and the second timer sets the overtime time as a second preset time;
and S23, when the second timer reaches the overtime, acquiring the output power EPC of the audio with the latest timestamp in the cache.
Step S30, obtaining the output power EPD of the audio set last time, and determining the magnitudes of the output power EPD and the output power EPC.
Specifically, the timeout time of the second timer is 20 ms, and the second timer is used to periodically determine whether the value (EPC) of the output power EPA of the audio with the latest timestamp in the buffer module is the same as the output power EPD of the audio set last time, and if not, adjust the audio output power.
Please refer to fig. 4, which is a flowchart of step S30 in the audio output power control method according to the present invention.
As shown in fig. 4, the step S30 includes:
s31, when detecting that the mobile terminal has acquired the output power EPC of the audio with the latest timestamp, the mobile terminal acquires the output power EPD of the audio set last time according to the timestamp;
s32, the mobile terminal compares the output power EPC of the audio with the latest time stamp with the output power EPD of the audio set last time;
and S33, judging the sizes of the output power EPD and the output power EPC, and setting the output power of the audio in the next step according to the judgment result.
And step S40, when the EPD is larger than the EPC, the output power of the audio is set to EPD-1, and when the EPD is smaller than the EPC, the output power of the audio is set to EPD + 1.
Specifically, the mobile terminal judges the value (EPC) of the output power EPA of the audio with the latest timestamp in the cache module and the size of the audio output power EPD set last time; if EPD is greater than EPC, set the audio output power to EPD-1 and then output power is: EPD-1; if EPD is less than EPC, set the audio output power to EPD +1 and then output power is: EPD = EPD + 1; if EPD is equal to EPC, then audio output power is not adjusted.
Please refer to fig. 5, which is a flowchart of step S40 in the audio output power control method according to the present invention.
As shown in fig. 5, the step S40 includes:
s41, when the EPD is judged to be larger than the EPC, setting the output power of the audio to be EPD-1, and taking the EPD-1 as the output power of the current audio;
and S42, when the EPD is judged to be smaller than the EPC, setting the output power of the audio to EPD +1, and taking the EPD +1 as the output power of the current audio.
Further, when the EPD is judged to be equal to the EPC, the output power of the audio is controlled not to be adjusted, and the output power of the audio is kept to be the EPD.
As shown in fig. 6, based on the above audio output power control method, the present invention also provides a mobile terminal, which includes a processor 10, a memory 20 and a display 30. Fig. 6 shows only some of the components of the mobile terminal, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 20 may in some embodiments be an internal storage unit of the mobile terminal, such as a hard disk or a memory of the mobile terminal. The memory 20 may also be an external storage device of the mobile terminal in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the mobile terminal. Further, the memory 20 may also include both an internal storage unit and an external storage device of the mobile terminal. The memory 20 is used for storing application software installed in the mobile terminal and various data, such as program codes of the installed mobile terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores an audio output power control program 40, and the audio output power control program 40 can be executed by the processor 10 to implement the audio output power control method of the present application.
The processor 10 may be, in some embodiments, a Central Processing Unit (CPU), microprocessor or other data Processing chip for executing program codes stored in the memory 20 or Processing data, such as executing the audio output power control method.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 30 is used for displaying information at the mobile terminal and for displaying a visual user interface. The components 10-30 of the mobile terminal communicate with each other via a system bus.
In one embodiment, when the processor 10 executes the audio output power control program 40 in the memory 20, the following steps are implemented:
the mobile terminal detects the sound size of a playing file every a first preset time, and acquires the corresponding output power of the mobile terminal audio according to the sound size;
the mobile terminal caches the obtained output power and the corresponding timestamp, and obtains the output power EPC of the audio with the latest timestamp in the cached timestamp every second preset time;
acquiring the output power EPD of the audio set last time, and judging the sizes of the output power EPD and the output power EPC;
the output power of the audio is set to EPD-1 when the EPD is greater than the EPC, and to EPD +1 when the EPD is less than the EPC.
The obtaining of the output power EPD of the last set audio and the determining of the output power EPD and the output power EPC further include:
when the EPD is equal to the EPC, the output power of the audio is controlled not to be adjusted, and the output power of the audio is kept to be the EPD.
The method includes the steps that the mobile terminal detects the sound size of a playing file every first preset time, and the obtaining of the corresponding output power of the mobile terminal audio according to the sound size specifically includes:
the mobile terminal is provided with a first timer for triggering and detecting the sound size of a played file at fixed time, and the first timer sets overtime as first preset time;
and when the first timer reaches the overtime, detecting the sound size of the playing file, and acquiring the corresponding output power of the mobile terminal audio according to the corresponding relation between the sound size and the output power.
The mobile terminal caches the obtained output power and the corresponding timestamp, and the step of obtaining the output power EPC of the audio with the latest timestamp in the cached audio every second preset time specifically includes:
the mobile terminal caches the acquired output power and the timestamp of the corresponding current time;
the mobile terminal is provided with a second timer for acquiring the output power of the audio with the latest timestamp at fixed time, and the second timer sets the timeout time as a second preset time;
and when the second timer reaches the timeout time, acquiring the output power EPC of the audio with the latest timestamp in the cache.
The obtaining the output power EPD of the audio set last time, and determining the magnitudes of the output power EPD and the output power EPC specifically includes:
when detecting that the mobile terminal acquires the output power EPC of the audio with the latest timestamp, the mobile terminal acquires the output power EPD of the audio set last time according to the timestamp;
the mobile terminal compares the output power EPC of the audio with the latest timestamp with the output power EPD of the audio set last time;
and judging the sizes of the output power EPD and the output power EPC, and setting the output power of the audio in the next step according to the judgment result.
Setting the output power of the audio to EPD-1 when the EPD is larger than the EPC, and setting the output power of the audio to EPD +1 when the EPD is smaller than the EPC specifically includes:
when the EPD is judged to be larger than the EPC, the output power of the audio is set to be EPD-1, and the EPD-1 is used as the output power of the current audio;
when the EPD is judged to be smaller than the EPC, the output power of the audio is set to EPD +1, and the EPD +1 is taken as the output power of the current audio.
The present invention also provides a storage medium, wherein the storage medium stores an audio output power control program, and the audio output power control program, when executed by a processor, implements the steps of the audio output power control method as described above; as described above.
In summary, the present invention provides an audio output power control method, a mobile terminal and a storage medium, where the method includes: the mobile terminal detects the sound size of a playing file every a first preset time, and acquires the corresponding output power of the mobile terminal audio according to the sound size; the mobile terminal caches the obtained output power and the corresponding timestamp, and obtains the output power EPC of the audio with the latest timestamp in the cached timestamp every second preset time; acquiring the output power EPD of the audio set last time, and judging the sizes of the output power EPD and the output power EPC; the output power of the audio is set to EPD-1 when the EPD is greater than the EPC, and to EPD +1 when the EPD is less than the EPC. When the user uses the audio function of the mobile terminal, even if the downloaded file has defects, the mobile terminal can still ensure that the audio output power does not jump during playing, prevent the fast-changing current from interfering other modules of the mobile terminal, and avoid the situation that the power-off shutdown of the mobile terminal is easily caused by the jump of the instantaneous output current of the battery.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (6)

1. An audio output power control method applied to a mobile terminal is characterized by comprising the following steps:
the mobile terminal detects the sound size of a playing file every a first preset time, and acquires the corresponding output power of the mobile terminal audio according to the sound size;
the mobile terminal detects the sound size of the playing file every first preset time, and before acquiring the output power of the corresponding mobile terminal audio according to the sound size, the method further comprises the following steps:
establishing a corresponding relation between the sound size SPA of the playing file and the output power EPA of the mobile terminal audio, wherein the unit of the SPA is dbm;
the mobile terminal caches the obtained output power and the corresponding timestamp, and obtains the output power EPC of the audio with the latest timestamp in the cached timestamp every second preset time;
the mobile terminal caches the obtained output power and the corresponding timestamp, and the step of obtaining the output power EPC of the audio with the latest timestamp in the cached audio every second preset time specifically includes:
the mobile terminal caches the acquired output power and the timestamp of the corresponding current time;
the mobile terminal is provided with a second timer for acquiring the output power of the audio with the latest timestamp at fixed time, and the second timer sets the timeout time as a second preset time;
when the second timer reaches the overtime, acquiring the output power EPC of the audio with the latest timestamp in the cache;
acquiring the output power EPD of the audio set last time, and judging the sizes of the output power EPD and the output power EPC;
the obtaining the output power EPD of the audio set last time, and determining the magnitudes of the output power EPD and the output power EPC specifically includes:
when detecting that the mobile terminal acquires the output power EPC of the audio with the latest timestamp, the mobile terminal acquires the output power EPD of the audio set last time according to the timestamp;
the mobile terminal compares the output power EPC of the audio with the latest timestamp with the output power EPD of the audio set last time;
judging the magnitude of the output power EPD and the output power EPC, and setting the output power of the audio in the next step according to the judgment result;
the obtaining of the output power EPD of the last set audio and the determining of the output power EPD and the output power EPC further include:
when the EPD is equal to the EPC, controlling the output power of the audio not to be adjusted, and keeping the output power of the audio as the EPD;
when the EPD is larger than the EPC, the output power of the audio is set to be EPD-1, and when the EPD is smaller than the EPC, the output power of the audio is set to be EPD + 1;
setting the output power of the audio to EPD-1 when the EPD is greater than the EPC, and setting the output power of the audio to EPD +1 when the EPD is less than the EPC specifically includes:
when the EPD is judged to be larger than the EPC, the output power of the audio is set to be EPD-1, and the EPD-1 is used as the output power of the current audio;
when the EPD is judged to be smaller than the EPC, setting the output power of the audio to be EPD +1, and taking the EPD +1 as the output power of the current audio;
the audio output power is controlled not to jump when the mobile terminal keeps playing, so that the current which changes rapidly is prevented from interfering other modules of the mobile terminal, and the situation that the power-down shutdown of the mobile terminal is easily caused by the jump of the instantaneous output current of the battery is avoided.
2. The audio output power control method according to claim 1, wherein the mobile terminal detects the sound size of the playing file every first preset time, and before obtaining the output power of the corresponding mobile terminal audio according to the sound size, the method further comprises:
the corresponding relation between the sound size SPA of the playing file and the output power EPA of the mobile terminal audio is established in advance as follows:
-10dbm≥SPA>-20dbm,EPA=2
-20dbm≥SPA>-30dbm,EPA=3
-30dbm≥SPA>-40dbm,EPA=4
-40dbm≥SPA>-50dbm,EPA=5
-50dbm≥SPA>-60dbm,EPA=6
-60dbm≥SPA>-70dbm,EPA=7
-70dbm≥SPA>-80dbm,EPA=8
-80dbm≥SPA>-90dbm,EPA=9
-90dbm≥SPA,EPA=10
where the output power EPA indicates the power level and a larger value indicates a higher audio output power.
3. The audio output power control method according to claim 2, wherein the mobile terminal detects the sound size of the playing file every first preset time, and the obtaining the output power of the corresponding mobile terminal audio according to the sound size specifically comprises:
the mobile terminal is provided with a first timer for triggering and detecting the sound size of a played file at fixed time, and the first timer sets overtime as first preset time;
and when the first timer reaches the overtime, detecting the sound size of the playing file, and acquiring the corresponding output power of the mobile terminal audio according to the corresponding relation between the sound size and the output power.
4. The audio output power control method according to claim 1, wherein the first preset time is 100 milliseconds; the second preset time is 20 milliseconds.
5. A mobile terminal, characterized in that the mobile terminal comprises: memory, a processor and an audio output power control program stored on the memory and executable on the processor, the audio output power control program when executed by the processor implementing the steps of the audio output power control method according to any of claims 1-4.
6. A storage medium storing an audio output power control program which, when executed by a processor, implements the steps of the audio output power control method of any one of claims 1 to 4.
CN201810310906.1A 2018-04-09 2018-04-09 Audio output power control method, mobile terminal and storage medium Active CN108683796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810310906.1A CN108683796B (en) 2018-04-09 2018-04-09 Audio output power control method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810310906.1A CN108683796B (en) 2018-04-09 2018-04-09 Audio output power control method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108683796A CN108683796A (en) 2018-10-19
CN108683796B true CN108683796B (en) 2020-12-15

Family

ID=63799902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810310906.1A Active CN108683796B (en) 2018-04-09 2018-04-09 Audio output power control method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108683796B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1305661A (en) * 1998-04-14 2001-07-25 听觉增强有限公司 User adjustable volume control that accommodates hearing
CN103826075A (en) * 2014-01-26 2014-05-28 北京京东方显示技术有限公司 Loudspeaker volume control device, volume adjusting method and audio-visual device
CN103888875A (en) * 2014-03-26 2014-06-25 航天科技控股集团股份有限公司 Built-in loudspeaker sound quality optimizing and amplifying device for vehicle travelling data recorder
CN105892985A (en) * 2016-04-22 2016-08-24 广东小天才科技有限公司 Method and device for automatically regulating playing volume of intelligent terminal
WO2017085562A2 (en) * 2015-11-20 2017-05-26 Dolby International Ab Improved rendering of immersive audio content

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1727391A1 (en) * 2004-03-19 2006-11-29 Pioneer Corporation Volume control method, volume controller, volume control program, electronic apparatus
CN100505530C (en) * 2005-06-24 2009-06-24 腾讯科技(深圳)有限公司 Volume control method and system
CN1980055A (en) * 2005-12-05 2007-06-13 英业达股份有限公司 Sound-volume control system and method
US9084048B1 (en) * 2010-06-17 2015-07-14 Shindig, Inc. Audio systems and methods employing an array of transducers optimized for particular sound frequencies
CN103458114B (en) * 2013-08-20 2016-02-24 小米科技有限责任公司 A kind of method of switching multi-media stream, equipment and terminal
US9774952B2 (en) * 2015-04-02 2017-09-26 Entotem Limited Processing analog audio signals
US10109319B2 (en) * 2016-01-08 2018-10-23 Gopro, Inc. Digital media editing
CN105933537B (en) * 2016-06-16 2019-07-05 Oppo广东移动通信有限公司 A kind of volume processing method and user terminal
CN107277268B (en) * 2017-07-17 2020-02-18 维沃移动通信有限公司 Audio playing method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1305661A (en) * 1998-04-14 2001-07-25 听觉增强有限公司 User adjustable volume control that accommodates hearing
CN103826075A (en) * 2014-01-26 2014-05-28 北京京东方显示技术有限公司 Loudspeaker volume control device, volume adjusting method and audio-visual device
CN103888875A (en) * 2014-03-26 2014-06-25 航天科技控股集团股份有限公司 Built-in loudspeaker sound quality optimizing and amplifying device for vehicle travelling data recorder
WO2017085562A2 (en) * 2015-11-20 2017-05-26 Dolby International Ab Improved rendering of immersive audio content
CN105892985A (en) * 2016-04-22 2016-08-24 广东小天才科技有限公司 Method and device for automatically regulating playing volume of intelligent terminal

Also Published As

Publication number Publication date
CN108683796A (en) 2018-10-19

Similar Documents

Publication Publication Date Title
US9336747B2 (en) Display dimming to save mobile device power during webpage, web content, and device application loading
CN108510963B (en) Screen brightness adjusting method and device, storage medium and intelligent terminal
JP5770312B2 (en) Reduced still image detection and resource usage on electronic devices
RU2651207C2 (en) Method and apparatus for processing application program package
US9230476B2 (en) Method and electronic device for reducing power consumption of display
US20150054725A1 (en) Method for adjusting display backlight with aid of ambient light brightness detection and time detection, and associated apparatus and associated computer program product
US11086635B2 (en) Electronic device, method for controlling electronic device, and program
US20180124317A1 (en) Power saving techniques for an image capture device
CN109272917B (en) Screen brightness adjusting method and device, storage medium and electronic equipment
CN109460364B (en) Application program detection method and device, storage medium and mobile terminal
CN107277259B (en) Signal adjusting method, electronic device and computer readable storage medium
CN107333147B (en) Video buffer control method, terminal and storage device
CN111356008A (en) Automatic television volume adjusting method, smart television and storage medium
CN114071047A (en) Frame rate control method and related device
CN114051074B (en) Intelligent message reminding method of double-screen telephone watch
US11604736B2 (en) Memory cleaning method, intelligent terminal and readable storage medium
CN108683796B (en) Audio output power control method, mobile terminal and storage medium
CA2803460C (en) Method and apparatus enabling keystroke acceleration
CN116092449A (en) Screen brightness determining method and device and electronic equipment
CN107613351B (en) Video area brightness control method, mobile terminal and storage medium
CN105472110B (en) Incoming call automatic processing system and method
CN113077757A (en) Camera control method and device for electronic equipment, electronic equipment and storage medium
CN110782859A (en) Brightness adjusting method, first terminal, system and device
CN109474736B (en) Terminal voice application control method and device and storage medium
CN114489530A (en) Screen control method and mobile terminal

Legal Events

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

Effective date of registration: 20231222

Address after: 361000 room 4101, No. 131, xinjingdongli, Haicang District, Xiamen City, Fujian Province

Patentee after: Xiamen Jiupin sesame Information Technology Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.