CN112367425B - Volume adjusting method and device and terminal - Google Patents
Volume adjusting method and device and terminal Download PDFInfo
- Publication number
- CN112367425B CN112367425B CN202011140184.3A CN202011140184A CN112367425B CN 112367425 B CN112367425 B CN 112367425B CN 202011140184 A CN202011140184 A CN 202011140184A CN 112367425 B CN112367425 B CN 112367425B
- Authority
- CN
- China
- Prior art keywords
- area
- volume
- value
- adjustment
- numerical value
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/22—Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector
Landscapes
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a volume adjusting method, a volume adjusting device and a terminal. According to the embodiment of the invention, a trigger instruction is detected, an initial volume value and a volume adjusting area are obtained according to the trigger instruction, then a user input instruction is obtained, the volume adjusting area is divided into a first area and a second area according to the user input instruction, a first area and a second area are obtained, then a volume adjusting value is calculated according to the first area and the second area, and then a target volume value is generated according to the initial volume value, the volume adjusting value and an adjusting rule; according to the embodiment of the invention, when a mobile terminal user listens to high-definition music, the sound control of the high-definition music can be directly carried out through the screen, the current volume value is accurately adjusted, the ideal state of quickly controlling the sound is achieved, the user experience is improved, and convenience is brought to the user.
Description
Technical Field
The invention relates to the field of mobile terminals, in particular to a volume adjusting method, a volume adjusting device and a terminal.
Background
With the continuous development of communication technology, a great deal of terminals such as smart phones, tablet computers and notebook computers are popularized and applied, the terminals are developed towards diversification and individuation, and increasingly become indispensable terminals in life and work of people, and nowadays, the terminals such as the mobile phones and the tablet computers become electronic equipment which is carried by people in daily life.
At present, terminals are electronic devices integrating communication and entertainment. More and more people like listening to music, news broadcasts and the like by using an intelligent terminal during leisure time and sports, particularly along with the development of technologies such as high-definition music and HIFI at present, the requirement on sound control is higher and higher, and in the research and practice process of the prior art, the inventor of the embodiment of the application finds that the current sound control still performs up-and-down sliding adjustment on a volume control bar through a volume side key or a touch screen, the sound size can be adjusted only through the short control bar, the volume cannot be accurately adjusted, and the experience of a user is poor when the user listens to music by using the terminal.
Disclosure of Invention
The embodiment of the invention provides a volume adjusting method, a volume adjusting device and a terminal, which can call an adjusting rule through a trigger instruction to accurately adjust the size of music.
The embodiment of the invention provides a volume adjusting method, which comprises the following steps:
detecting a trigger instruction, and acquiring an initial volume value and a volume adjusting area according to the trigger instruction;
acquiring a user input instruction, dividing the volume adjusting area into a first area and a second area according to the user input instruction, and acquiring a first area and a second area;
calculating a volume adjustment value according to the first area and the second area;
and generating a target volume value according to the initial volume value, the volume adjustment value and an adjustment rule.
Optionally, in some embodiments of the present invention, calculating a volume adjustment value according to the first area and the second area includes:
judging the relative size of the area of the first region and the area of the second region;
if the area of the first area is larger than the area of the second area, the ratio of the area of the second area to the area of the first area is a volume adjustment value;
and if the area of the first area is smaller than the area of the second area, the ratio of the area of the first area to the area of the second area is a volume adjustment value.
Optionally, in some embodiments of the present invention, the method includes:
and calling the adjusting rule according to the triggering instruction.
Optionally, in some embodiments of the present invention, the invoking the adjustment rule according to the trigger instruction includes:
the trigger instruction comprises a first trigger instruction and a second trigger instruction, and the adjustment rule comprises a first adjustment rule and a second adjustment rule;
and calling the first adjusting rule according to the first triggering instruction.
The first adjusting rule is to calculate 10% of the initial volume value to obtain a first numerical value; calculating the product of the volume adjustment value and the first numerical value to obtain a second numerical value; and calculating the target volume value by subtracting the first numerical value and the second numerical value from the initial volume.
Optionally, in some embodiments of the present invention, the invoking the adjustment rule according to the trigger instruction includes:
the trigger instruction comprises a first trigger instruction and a second trigger instruction, and the adjustment rule comprises a first adjustment rule and a second adjustment rule;
and calling the second adjusting rule according to the second triggering instruction.
The second adjustment rule is to calculate 10% of the initial volume value to obtain a first numerical value; calculating the product of the volume adjustment value and the first numerical value to obtain a second numerical value; and calculating the target volume value by adding the second numerical value to the initial volume.
Optionally, in some embodiments of the present invention, generating a target volume value according to the initial volume value, the volume adjustment value, and the first adjustment rule includes:
calculating 10% of the initial volume value to obtain the first numerical value;
calculating the product of the volume adjustment value and the first numerical value to obtain the second numerical value;
and calculating the target volume value by subtracting the first numerical value and the second numerical value from the initial volume.
Optionally, in some embodiments of the present invention, generating a target volume value according to the initial volume value, the volume adjustment value, and the second adjustment rule includes:
calculating 10% of the initial volume value to obtain the first numerical value;
calculating the product of the volume adjustment value and the first numerical value to obtain the second numerical value;
and calculating the target volume value by adding the second numerical value to the initial volume.
Correspondingly, an embodiment of the present invention further provides a volume adjusting device, including:
a detection module for detecting the trigger instruction,
the acquisition module is used for acquiring an initial volume value and a volume adjusting area according to the trigger instruction, acquiring a user input instruction and acquiring a first area and a second area;
the calling module is used for calling the adjustment rule;
the processing module is used for dividing the volume adjusting area into a first area and a second area according to the user input instruction and calculating a volume adjusting value according to the area of the first area and the area of the second area; and the volume adjusting module is used for generating a target volume value according to the initial volume value, the volume adjusting value and the adjusting rule.
Optionally, in some embodiments of the present invention, the apparatus includes:
and the judging module is used for judging the relative size of the area of the first region and the area of the second region.
Similarly, an embodiment of the present invention further provides a terminal, which includes the above volume adjustment device, and is capable of executing any one of the steps of the volume adjustment method.
The embodiment of the invention provides a volume adjusting method, a volume adjusting device and a terminal, wherein a trigger instruction is detected, an initial volume value and a volume adjusting area are obtained according to the trigger instruction, then a user input instruction is obtained, the volume adjusting area is divided into a first area and a second area according to the user input instruction, a first area and a second area are obtained, then a volume adjusting value is calculated according to the first area and the second area, and then a target volume value is generated according to the initial volume value, the volume adjusting value and an adjusting rule; according to the embodiment of the invention, when a mobile terminal user listens to high-definition music, the sound control of the high-definition music can be directly carried out through the screen, the current volume value is accurately adjusted, the ideal state of quickly controlling the sound is achieved, the user experience is improved, and convenience is brought to the user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scene of a volume adjustment method according to an embodiment of the present invention;
fig. 2 is a flow chart of a volume adjustment method according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a volume adjustment method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a volume adjustment device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "means two or more unless specifically defined otherwise.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials. In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The embodiment of the invention provides a volume adjusting method, a volume adjusting device and a terminal. The volume adjustment method, apparatus and terminal will be described in detail below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The invention is described in detail below with reference to the drawings and the detailed description, with reference to fig. 1 to 4.
Referring to fig. 1, fig. 1 is a scene schematic diagram of a volume adjusting method according to an embodiment of the present invention. When a trigger instruction sent to the terminal 1 by a user is detected, an initial volume value and a volume adjusting area are obtained according to the trigger instruction, meanwhile, the terminal 1 calls the adjusting rule according to the trigger instruction, the terminal 1 continues to obtain a user input instruction, the volume adjusting area is divided into a first area and a second area according to the user input instruction, a first area and a second area are obtained, then, a volume adjusting value is calculated according to the first area and the second area, and then, a target volume value is generated according to the initial volume value, the volume adjusting value and the adjusting rule. According to the embodiment of the invention, the sound control of high-definition music can be directly carried out through the screen according to the trigger instruction, the current volume value is accurately adjusted, the ideal state of quickly controlling the sound is achieved, and the user experience is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a volume adjusting method according to an embodiment of the present invention. The embodiment of the invention comprises the following steps:
201. and detecting a trigger instruction, and acquiring an initial volume value and a volume adjusting area according to the trigger instruction.
Specifically, in the embodiment of the present invention, a trigger instruction is detected, and an initial volume value and a volume adjustment area are obtained according to the trigger instruction, at this time, the trigger instruction is generated according to detection that a user presses a volume key, where the trigger instruction includes a first trigger instruction and a second trigger instruction, and if the user presses a volume reduction key, the trigger instruction is the first trigger instruction, and if the user presses a volume increase key, the trigger instruction is the second trigger instruction.
202. And acquiring a user input instruction, dividing the volume adjusting area into a first area and a second area according to the user input instruction, and acquiring the area of the first area and the area of the second area.
Specifically, in the embodiment of the present invention, a user input instruction is obtained, the volume adjustment area is divided into a first area and a second area according to the user input instruction, an area of the first area and an area of the second area are obtained, the user input instruction is obtained by detecting an input of a user on a screen, and the user may generate the user input instruction by an input method of a finger, a pen with an input function, a mouse, or the like.
203. And calculating a volume adjustment value according to the first area and the second area.
Specifically, in the embodiment of the present invention, by determining the relative size of the first region area and the second region area, and calculating the volume adjustment value according to the first region area and the second region area, the embodiment of the present invention specifically has the following two possible implementation manners:
optionally, in a first possible implementation manner, if the area of the first region is larger than the area of the second region, a ratio of the area of the second region to the area of the first region is a volume adjustment value;
optionally, in a first possible implementation manner, if the area of the first region is smaller than the area of the second region, a ratio of the area of the first region to the area of the second region is a volume adjustment value.
204. And generating a target volume value according to the initial volume value, the volume adjustment value and an adjustment rule.
Specifically, in the embodiment of the present invention, the adjustment rule includes a first adjustment rule and a second adjustment rule, the first adjustment rule is called according to the first trigger instruction, the second adjustment rule is called according to the second trigger instruction, the first adjustment rule is to calculate 10% of the initial volume value, and a first value is obtained; calculating the product of the volume adjustment value and the first numerical value to obtain a second numerical value; calculating the target volume value by subtracting the first numerical value and the second numerical value from the initial volume; the second adjustment rule is to calculate 10% of the initial volume value to obtain a first numerical value; calculating the product of the volume adjustment value and the first numerical value to obtain a second numerical value; calculating the target volume value by adding the second numerical value to the initial volume; the embodiment of the invention has the following two possible implementation modes:
optionally, in a first possible implementation manner, when the trigger instruction is a first trigger instruction, a target volume value is generated according to the initial volume value, the volume adjustment value, and a first adjustment rule, and 10% of the initial volume value is calculated to obtain the first numerical value; calculating the product of the volume adjustment value and the first numerical value to obtain the second numerical value; calculating the target volume value by subtracting the first value from the initial volume and adding the second value, for example, when the trigger command is a first trigger command, obtaining an initial volume value, the initial volume value being 60, the volume adjustment region having a length of 3cm and a width of 2cm, dividing the volume adjustment region into two regions by the user input command, the first region having an area value of 2 and the second region having an area value of 4, the volume adjustment value being 0.5, generating a target volume value according to the initial volume value, the volume adjustment value and a first adjustment rule, calculating 10% of the initial volume value, obtaining the first value, the first value being 6, calculating a product of the volume adjustment value and the first value, obtaining the second value, the second value being 3, calculating the target volume value by subtracting the first value from the initial volume and adding the second value, the target volume value was calculated to be 57.
Optionally, in a second possible implementation manner, when the trigger instruction is a second trigger instruction, a target volume value is generated according to the initial volume value, the volume adjustment value, and the second adjustment rule, and 10% of the initial volume value is calculated to obtain the first numerical value; calculating the product of the volume adjustment value and the first numerical value to obtain the second numerical value; calculating the target volume value by adding the second numerical value to the initial volume, for example, when the trigger command is a first trigger command, obtaining the initial volume value, the initial volume value is 60, the length of the volume adjusting area is 3cm, the width of the volume adjusting area is 2cm, the volume adjusting area is divided into two areas by the user input instruction, the area value of the first area is 2, the area value of the second area is 4, the volume adjusting value is 0.5, generating a target volume value according to the initial volume value, the volume adjustment value and a second adjustment rule, calculating 10% of the initial volume value to obtain a first numerical value, wherein the first numerical value is 6, calculating the product of the volume adjustment value and the first numerical value to obtain a second numerical value, wherein the second numerical value is 3, calculating the target volume value by adding the initial volume value and the second numerical value, and calculating to obtain the target volume value of 63.
It should be noted that the embodiment of the present invention may be applied to a terminal to adjust the volume, or may be only used for a preset application to adjust the volume.
Optionally, when the application program is started, first determining whether the application program is a preset application program that needs to apply the volume adjustment method; if so, the volume adjustment method provided by the embodiment of the invention is adopted to adjust the volume, and if not, the volume is adjusted according to the volume key.
Referring to fig. 3, fig. 3 is a schematic flow chart of another volume adjusting method according to an embodiment of the present invention. The embodiment of the invention comprises the following steps:
301. the current application type is detected.
Specifically, in the embodiment of the present invention, if the current application program is the preset application program, step 302 is executed; and if the current application program is not the preset application program, ending the process.
302. And detecting a trigger instruction, and acquiring an initial volume value and a volume adjusting area according to the trigger instruction.
Specifically, in the embodiment of the present invention, a trigger instruction is detected, and an initial volume value and a volume adjustment area are obtained according to the trigger instruction, at this time, the trigger instruction is generated according to detection that a user presses a volume key, where the trigger instruction includes a first trigger instruction and a second trigger instruction, and if the user presses a volume reduction key, the trigger instruction is the first trigger instruction, and if the user presses a volume increase key, the trigger instruction is the second trigger instruction.
303. And acquiring a user input instruction, dividing the volume adjusting area into a first area and a second area according to the user input instruction, and acquiring the area of the first area and the area of the second area.
Specifically, in the embodiment of the present invention, a user input instruction is obtained, the volume adjustment area is divided into a first area and a second area according to the user input instruction, an area of the first area and an area of the second area are obtained, the user input instruction is obtained by detecting an input of a user on a screen, and the user may generate the user input instruction by an input method of a finger, a pen with an input function, a mouse, or the like.
304. And calculating a volume adjustment value according to the first area and the second area.
Specifically, in the embodiment of the present invention, by determining the relative size of the first region area and the second region area, and calculating the volume adjustment value according to the first region area and the second region area, the embodiment of the present invention specifically has the following two possible implementation manners:
optionally, in a first possible implementation manner, if the area of the first region is larger than the area of the second region, a ratio of the area of the second region to the area of the first region is a volume adjustment value;
optionally, in a first possible implementation manner, if the area of the first region is smaller than the area of the second region, a ratio of the area of the first region to the area of the second region is a volume adjustment value.
305. And generating a target volume value according to the initial volume value, the volume adjustment value and an adjustment rule.
Specifically, in the embodiment of the present invention, the adjustment rule includes a first adjustment rule and a second adjustment rule, the first adjustment rule is called according to the first trigger instruction, the second adjustment rule is called according to the second trigger instruction, the first adjustment rule is to calculate 10% of the initial volume value, and a first value is obtained; calculating the product of the volume adjustment value and the first numerical value to obtain a second numerical value; calculating the target volume value by subtracting the first numerical value and the second numerical value from the initial volume; the second adjustment rule is to calculate 10% of the initial volume value to obtain a first numerical value; calculating the product of the volume adjustment value and the first numerical value to obtain a second numerical value; calculating the target volume value by adding the second numerical value to the initial volume; the embodiment of the invention has the following two possible implementation modes:
optionally, in a first possible implementation manner, when the trigger instruction is a first trigger instruction, a target volume value is generated according to the initial volume value, the volume adjustment value, and a first adjustment rule, and 10% of the initial volume value is calculated to obtain the first numerical value; calculating the product of the volume adjustment value and the first numerical value to obtain the second numerical value; calculating the target volume value by subtracting the first value from the initial volume and adding the second value, for example, when the trigger command is a first trigger command, obtaining an initial volume value, the initial volume value being 60, the volume adjustment region having a length of 3cm and a width of 2cm, dividing the volume adjustment region into two regions by the user input command, the first region having an area value of 2 and the second region having an area value of 4, the volume adjustment value being 0.5, generating a target volume value according to the initial volume value, the volume adjustment value and a first adjustment rule, calculating 10% of the initial volume value, obtaining the first value, the first value being 6, calculating a product of the volume adjustment value and the first value, obtaining the second value, the second value being 3, calculating the target volume value by subtracting the first value from the initial volume and adding the second value, the target volume value was calculated to be 57.
Optionally, in a second possible implementation manner, when the trigger instruction is a second trigger instruction, a target volume value is generated according to the initial volume value, the volume adjustment value, and the second adjustment rule, and 10% of the initial volume value is calculated to obtain the first numerical value; calculating the product of the volume adjustment value and the first numerical value to obtain the second numerical value; calculating the target volume value by adding the second numerical value to the initial volume, for example, when the trigger command is a first trigger command, obtaining the initial volume value, the initial volume value is 60, the length of the volume adjusting area is 3cm, the width of the volume adjusting area is 2cm, the volume adjusting area is divided into two areas by the user input instruction, the area value of the first area is 2, the area value of the second area is 4, the volume adjusting value is 0.5, generating a target volume value according to the initial volume value, the volume adjustment value and a second adjustment rule, calculating 10% of the initial volume value to obtain a first numerical value, wherein the first numerical value is 6, calculating the product of the volume adjustment value and the first numerical value to obtain a second numerical value, wherein the second numerical value is 3, calculating the target volume value by adding the initial volume value and the second numerical value, and calculating to obtain the target volume value of 63.
In summary, embodiments of the present invention provide a volume adjustment method, a volume adjustment device, and a terminal, where a trigger instruction is detected, an initial volume value and a volume adjustment area are obtained according to the trigger instruction, then a user input instruction is obtained, the volume adjustment area is divided into a first area and a second area according to the user input instruction, a first area and a second area are obtained, then a volume adjustment value is calculated according to the first area and the second area, and then a target volume value is generated according to the initial volume value, the volume adjustment value, and an adjustment rule; according to the embodiment of the invention, when a mobile terminal user listens to high-definition music, the sound control of the high-definition music can be directly carried out through the screen, the current volume value is accurately adjusted, the ideal state of quickly controlling the sound is achieved, the user experience is improved, and convenience is brought to the user.
A volume adjustment method according to an embodiment of the present invention is described above, and a device for performing the volume adjustment is described below.
Referring to fig. 4, as shown in the schematic structural diagram of the volume adjusting device 4 shown in fig. 4, the device in the embodiment of the present invention can implement the steps corresponding to the volume adjusting method executed in the embodiment corresponding to fig. 1. The functions realized by the device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, which may be software and/or hardware. The apparatus may include a detection module 41, an acquisition module 42, a calling module 43, and a processing module 44.
Specifically, the volume adjusting device 4 includes a detecting module 41 configured to detect a trigger instruction, and an obtaining module 42 configured to obtain an initial volume value and a volume adjusting area according to the trigger instruction, obtain a user input instruction, and obtain a first area and a second area; a calling module 43 for calling the adjustment rule; a processing module 44, configured to divide the volume adjustment area into a first area and a second area according to the user input instruction, and configured to calculate a volume adjustment value according to the first area and the second area; and the volume adjusting module is used for generating a target volume value according to the initial volume value, the volume adjusting value and the adjusting rule.
The terminal device in the embodiment of the present invention is described above from the perspective of the modular functional entity, and the terminal device in the embodiment of the present invention is described below from the perspective of hardware processing. An embodiment of the present invention further provides a terminal, as shown in fig. 5, which shows a schematic structural diagram of a terminal according to an embodiment of the present invention, where the terminal may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like, and specifically:
as shown in fig. 5, the terminal may include Radio Frequency (RF) circuitry 501, memory 502 including one or more computer-readable storage media, input unit 503, display unit 504, sensor 505, audio circuitry 506, Wireless Fidelity (Wi-Fi) module 507, processor 508 including one or more processing cores, and power supply 509, among other components. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 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. Wherein:
the RF circuit 501 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 508 for processing; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 501 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 501 may also communicate with networks and other devices via wireless communications. 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), email, Short Messaging Service (SMS), and the like.
The memory 502 may be used to store software programs and modules, and the processor 508 executes various functional applications and data processing by operating the software programs and modules stored in the memory 502. The memory 502 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 502 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. Accordingly, the memory 502 may also include a memory controller to provide the processor 508 and the input unit 503 access to the memory 502.
The input unit 503 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 503 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means 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 the touch information into touch point coordinates, sends the touch point coordinates to the processor 508, and can receive and execute commands sent by the processor 508. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 503 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 504 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 504 may include a Display screen, and optionally, the Display screen may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display screen, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 508 to determine the type of touch event, and then the processor 508 provides a corresponding visual output on the display screen according to the type of touch event.
The terminal may also include at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts brightness of the display screen according to brightness of ambient light, and a proximity sensor that turns off the display screen and/or backlight when the terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration (generally three axes) at each position, can detect the magnitude and position of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping) and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Wi-Fi belongs to short-distance wireless transmission technology, and a terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 507, and provides wireless broadband internet access for the user. Although fig. 5 shows the Wi-Fi module 507, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 508 is a control center of the terminal, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the mobile phone. Optionally, processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 508. Specifically, in the embodiment of the present invention, after the processor receives a control instruction input by a user, the processor controls the volume adjustment device to execute a corresponding operation.
The terminal also includes a power supply 509 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 508 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 509 may also include any component such as one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 508 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 508 runs the application programs stored in the memory 502, thereby implementing various functions.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. The embodiments described above are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, those skilled in the art can obtain all other embodiments without creative efforts, and the design consistent with the embodiments of the present invention except the design mentioned in the embodiments of the present invention is within the protection scope of the present invention.
The volume adjusting method, the volume adjusting device and the terminal provided by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the technical scheme and the core idea of the invention; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (5)
1. A method of adjusting volume, comprising:
generating a corresponding trigger instruction according to a volume key pressed by a user, and acquiring an initial volume value and a volume adjusting area according to the trigger instruction when the trigger instruction is detected, wherein the trigger instruction comprises a first trigger instruction and a second trigger instruction, the volume key comprises a volume reduction key and a volume increase key, the volume reduction key is used for triggering the first trigger instruction, and the volume increase key is used for triggering the second trigger instruction;
acquiring a user input instruction, dividing the volume adjusting area into a first area and a second area according to the user input instruction, and acquiring a first area and a second area;
judging the relative size of the first area and the second area, and calculating a volume adjustment value according to the first area, the second area and the relative size of the first area and the second area, wherein if the first area is larger than the second area, the ratio of the second area to the first area is the volume adjustment value; if the area of the first area is smaller than the area of the second area, the ratio of the area of the first area to the area of the second area is the volume adjustment value;
calling corresponding adjustment rules according to the trigger instruction, wherein the adjustment rules comprise a first adjustment rule and a second adjustment rule, the first trigger instruction is used for calling the first adjustment rule, the second trigger instruction is used for calling the second adjustment rule, and the first adjustment rule is used for calculating 10% of the initial volume value to obtain a first numerical value; calculating the product of the volume adjustment value and the first numerical value to obtain a second numerical value; calculating a target volume value by subtracting the first numerical value and the second numerical value from the initial volume; the second adjustment rule is to calculate 10% of the initial volume value to obtain a first value; calculating the product of the volume adjustment value and the first numerical value to obtain a second numerical value; calculating the target volume value by adding the second numerical value to the initial volume;
and generating a target volume value according to the initial volume value, the volume adjustment value and the adjustment rule.
2. The method of claim 1, wherein generating a target volume value according to the initial volume value, the volume adjustment value, and the adjustment rule comprises:
calculating 10% of the initial volume value to obtain the first numerical value;
calculating the product of the volume adjustment value and the first numerical value to obtain the second numerical value;
and calculating the target volume value by subtracting the first numerical value and the second numerical value from the initial volume.
3. The method of claim 1, wherein generating a target volume value according to the initial volume value, the volume adjustment value, and the adjustment rule comprises:
calculating 10% of the initial volume value to obtain the first numerical value;
calculating the product of the volume adjustment value and the first numerical value to obtain the second numerical value;
and calculating the target volume value by adding the second numerical value to the initial volume.
4. A volume adjustment device, comprising:
the detection module is used for detecting a trigger instruction, wherein a corresponding trigger instruction is generated according to a volume key pressed by a user, the trigger instruction comprises a first trigger instruction and a second trigger instruction, the volume key comprises a volume reduction key and a volume increase key, the volume reduction key is used for triggering the first trigger instruction, and the volume increase key is used for triggering the second trigger instruction;
the acquisition module is used for acquiring an initial volume value and a volume adjusting area according to the trigger instruction;
the acquisition module is also used for acquiring a user input instruction;
a processing module for dividing the volume adjustment region into a first region and a second region according to the user input instruction
The acquisition module is also used for acquiring a first area and a second area;
the judging module is used for judging the relative size of the area of the first region and the area of the second region;
the processing module is further configured to calculate a volume adjustment value according to the first area, the second area, and a relative size between the first area and the second area, where if the first area is larger than the second area, a ratio of the second area to the first area is the volume adjustment value; if the area of the first area is smaller than the area of the second area, the ratio of the area of the first area to the area of the second area is the volume adjustment value;
the calling module is used for calling corresponding adjusting rules according to the triggering instruction, wherein the adjusting rules comprise a first adjusting rule and a second adjusting rule, the first triggering instruction is used for calling the first adjusting rule, the second triggering instruction is used for calling the second adjusting rule, and the first adjusting rule is used for calculating 10% of the initial volume value so as to obtain a first numerical value; calculating the product of the volume adjustment value and the first numerical value to obtain a second numerical value; calculating a target volume value by subtracting the first numerical value and the second numerical value from the initial volume; the second adjustment rule is to calculate 10% of the initial volume value to obtain a first value; calculating the product of the volume adjustment value and the first numerical value to obtain a second numerical value; calculating the target volume value by adding the second numerical value to the initial volume;
and the processing module is also used for generating a target volume value according to the initial volume value, the volume adjustment value and the adjustment rule.
5. A terminal comprising the volume adjustment device of claim 4, capable of performing the operations in the volume adjustment method of any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011140184.3A CN112367425B (en) | 2020-10-22 | 2020-10-22 | Volume adjusting method and device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011140184.3A CN112367425B (en) | 2020-10-22 | 2020-10-22 | Volume adjusting method and device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112367425A CN112367425A (en) | 2021-02-12 |
CN112367425B true CN112367425B (en) | 2022-04-22 |
Family
ID=74511674
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011140184.3A Active CN112367425B (en) | 2020-10-22 | 2020-10-22 | Volume adjusting method and device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112367425B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112992324A (en) * | 2021-03-23 | 2021-06-18 | 北京蓬阳丰业科技有限公司 | Calling method, device, electronic device and storage medium for hospital broadcast system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102413232A (en) * | 2011-10-11 | 2012-04-11 | 捷开通讯科技(上海)有限公司 | Backlight regulation device and method for mobile terminal |
CN106055263A (en) * | 2016-06-13 | 2016-10-26 | Tcl移动通信科技(宁波)有限公司 | Control method and system for backlight setting of mobile terminal |
CN110727411A (en) * | 2019-09-20 | 2020-01-24 | Tcl移动通信科技(宁波)有限公司 | Audio signal processing method and device, storage medium and terminal |
CN111048056A (en) * | 2019-12-19 | 2020-04-21 | 惠州Tcl移动通信有限公司 | Terminal equipment brightness adjusting method and system, storage medium and terminal equipment |
-
2020
- 2020-10-22 CN CN202011140184.3A patent/CN112367425B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102413232A (en) * | 2011-10-11 | 2012-04-11 | 捷开通讯科技(上海)有限公司 | Backlight regulation device and method for mobile terminal |
CN106055263A (en) * | 2016-06-13 | 2016-10-26 | Tcl移动通信科技(宁波)有限公司 | Control method and system for backlight setting of mobile terminal |
CN110727411A (en) * | 2019-09-20 | 2020-01-24 | Tcl移动通信科技(宁波)有限公司 | Audio signal processing method and device, storage medium and terminal |
CN111048056A (en) * | 2019-12-19 | 2020-04-21 | 惠州Tcl移动通信有限公司 | Terminal equipment brightness adjusting method and system, storage medium and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112367425A (en) | 2021-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107231159B (en) | Radio frequency interference processing method, device, storage medium and terminal | |
CN106982097A (en) | Radio frequency interference elimination method, device, storage medium and terminal | |
CN105094501B (en) | Method, device and system for displaying messages in mobile terminal | |
CN112867078B (en) | Base station control method and device and mobile terminal | |
CN110688051B (en) | Screen recording operation method and device, computer readable storage medium and terminal | |
CN108833683A (en) | Dynamic antenna adjusts implementation method and Related product | |
CN109688611B (en) | Frequency band parameter configuration method, device, terminal and storage medium | |
CN109660445B (en) | Message processing method, device and storage medium | |
CN112367425B (en) | Volume adjusting method and device and terminal | |
CN111885591A (en) | Network connection method, device, storage medium and terminal | |
CN111327343A (en) | Common receiving channel radio frequency device, method and mobile terminal | |
CN111372003A (en) | Camera switching method and device and terminal | |
CN111966237B (en) | Touch compensation method and device for open screen and terminal | |
CN105635379B (en) | Noise suppression method and device | |
CN110996003B (en) | Photographing positioning method and device and mobile terminal | |
CN112286849A (en) | Wireless charging base data switching method and system, storage medium and terminal equipment | |
CN112433694A (en) | Light intensity adjusting method and device, storage medium and mobile terminal | |
CN112261634A (en) | Bluetooth transmission control method, device, terminal equipment and storage medium | |
CN111405649B (en) | Information transmission method and device and mobile terminal | |
CN111308303A (en) | Method and device for detecting radio frequency power amplifier of mobile terminal | |
CN112350743B (en) | Antenna selection circuit structure, antenna selection method and customer premises equipment | |
CN111966271B (en) | Screen panorama screenshot method and device, terminal equipment and storage medium | |
CN111654578B (en) | Mobile terminal sensor restoration method | |
CN104468958B (en) | A kind of method and user equipment that control incoming call is mute | |
CN111371520B (en) | Radio search processing method and device, storage medium and 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 |