CN104601126B - The method and apparatus for adjusting volume - Google Patents

The method and apparatus for adjusting volume Download PDF

Info

Publication number
CN104601126B
CN104601126B CN201510018630.6A CN201510018630A CN104601126B CN 104601126 B CN104601126 B CN 104601126B CN 201510018630 A CN201510018630 A CN 201510018630A CN 104601126 B CN104601126 B CN 104601126B
Authority
CN
China
Prior art keywords
volume
gear
terminal
button
percentage
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
CN201510018630.6A
Other languages
Chinese (zh)
Other versions
CN104601126A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510018630.6A priority Critical patent/CN104601126B/en
Publication of CN104601126A publication Critical patent/CN104601126A/en
Application granted granted Critical
Publication of CN104601126B publication Critical patent/CN104601126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/02Manually-operated control

Landscapes

  • Telephone Function (AREA)

Abstract

The disclosure is directed to a kind of method and apparatus for adjusting volume, belong to electronic technology field.This method includes:When the first volume gear or the second volume gear of terminal are adjusted, the first volume gear and the second volume gear are obtained;According to the first volume gear and the second volume gear, the current volume value of the terminal is calculated;The current output volume of the terminal is dimensioned to the current volume value.The device includes:Acquisition module, computing module and setup module.The size of the current output volume of control terminal is gone in the disclosure by the first volume gear and the second volume gear, so as to improve the precision of volume adjusting.

Description

The method and apparatus for adjusting volume
Technical field
The disclosure is directed to electronic technology field, especially with respect to a kind of method and apparatus for adjusting volume.
Background technology
When user listens music and switches song, because the volume of different songs in itself may be different, terminal is caused to be broadcast The sound released varies, and some sound are big to sounding very uncomfortable, and some sound are small to allowing people not hear Chu, this is accomplished by the size that user adjusts terminal volume, to reach more comfortable effect.
At present, volume is divided into multistage by terminal, and user often presses the volume increment key in a terminal, and terminal will be current Volume improves single order;Equally, user often presses the volume-down keys in a terminal, and current volume is reduced single order by terminal.
Disclosure
The problem of in order to overcome correlation technique, present disclose provides a kind of method and apparatus for adjusting volume.
According to the first aspect of the embodiment of the present disclosure there is provided a kind of method for adjusting volume, including:
When the first volume gear or the second volume gear of terminal are adjusted, the first volume gear and institute are obtained State the second volume gear;
According to the first volume gear and the second volume gear, the current volume value of the terminal is calculated;
The current output volume of the terminal is dimensioned to the current volume value.
In one embodiment, it is described according to the first volume gear and the second volume gear, calculate the end The current volume value at end, including:
Obtain the corresponding first volume percentage of the first volume gear and the second volume gear corresponding second Volume percentage;
According to total volume value of the first volume percentage, the second volume percentage and the terminal, institute is calculated State the current volume value of terminal.
In one embodiment, methods described also includes:
When the volume for detecting the terminal, which adjusts button, to be pressed, button is adjusted according to the volume, adjustment is described First volume gear or the second volume gear.
In one embodiment, it is described that button is adjusted according to the volume, adjust the first volume gear or described Second volume gear, including:
If the volume adjustment button is used for the first volume gear for adjusting the terminal, first volume is obtained Gear;
When the first volume gear is preset gear, then adjusting button according to the volume adjusts the second volume shelves Position;
When the first volume gear is not preset gear, then adjusting button according to the volume adjusts first volume Gear.
In one embodiment, after the second volume gear according to volume adjustment button adjustment, also wrap Include:
The first volume gear is adjusted to lowest gear.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of device for adjusting volume, including:
Acquisition module, when the first volume gear or the second volume gear for being configured as terminal are adjusted, obtains institute State the first volume gear and the second volume gear;
Computing module, is configured as, according to the first volume gear and the second volume gear, calculating the terminal Current volume value;
Setup module, is configured as the current output volume of the terminal being dimensioned to the current volume value.
In one embodiment, the computing module, including:
First acquisition unit, is configured as obtaining the corresponding first volume percentage of the first volume gear and described the The corresponding second volume percentage of two volume gears;
Computing unit, is configured as according to the first volume percentage, the second volume percentage and the terminal Total volume value, calculate the current volume value of the terminal.
In one embodiment, described device also includes:
Adjusting module, when being configured as detecting the volume adjustment button of the terminal and being pressed, according to the volume Button is adjusted, the first volume gear or the second volume gear is adjusted.
In one embodiment, the adjusting module, including:
Second acquisition unit, is configured as adjusting the first volume gear that button is used to adjust the terminal in the volume When, obtain the first volume gear;
First adjustment unit, is configured as the first volume gear for preset gear, is then adjusted according to the volume Button adjusts the second volume gear;
Second adjustment unit, it is not preset gear to be configured as the first volume gear, then is adjusted according to the volume Whole button adjusts the first volume gear.
In one embodiment, the adjusting module, in addition to:
3rd adjustment unit, is configured as the first volume gear being adjusted to lowest gear.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of device for adjusting volume, including:
Processor;
For the memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
When the first volume gear or the second volume gear of terminal are adjusted, the first volume gear and institute are obtained State the second volume gear;
According to the first volume gear and the second volume gear, the current volume value of the terminal is calculated;
The current output volume of the terminal is dimensioned to the current volume value.
The technical scheme that the embodiment of the present disclosure is provided can include the following benefits:
When the first volume gear or the second volume gear of terminal are adjusted, the first volume gear and the second sound are obtained Measure gear;According to the first volume gear and the second volume gear, the current volume value of computing terminal;By the current output sound of terminal That measures is dimensioned to current volume value.Due to removing the current defeated of control terminal by the first volume gear and the second volume gear Go out the size of volume, so as to improve the precision of volume adjusting.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the disclosure, constitutes the part of the application, not Constitute of this disclosure limit.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the method for regulation volume according to an exemplary embodiment 1;
Fig. 2-1 is a kind of flow chart of the method for regulation volume according to an exemplary embodiment 2;
Fig. 2-2 is a kind of the first volume gear of regulation or the second volume gear according to an exemplary embodiment 2 Interface schematic diagram;
Fig. 3-1 is a kind of block diagram of the device of regulation volume according to an exemplary embodiment 3;
Fig. 3-2 is the block diagram of the device of another regulation volume according to an exemplary embodiment 3;
Fig. 4 is a kind of block diagram of the device of regulation volume according to an exemplary embodiment 4.
Embodiment
For the purpose, technical scheme and advantage of the disclosure are more clearly understood, below in conjunction with embodiment and accompanying drawing, The disclosure is described in further details.Here, the exemplary embodiment of the disclosure and its illustrate be used for explain the disclosure, but It is not intended as restriction of this disclosure.
The terminal of the disclosure includes two volume gears, respectively the first volume gear and the second volume gear, the first sound Amount gear and the second volume gear together decide on the size of the current output volume of terminal.
First volume gear refers to fine setting volume gear, and user can be in the second volume gear by the first volume gear On the basis of adjust the volume of terminal by a small margin;Second volume gear refers to homophony volume gear, and user passes through the second volume gear The volume of terminal can significantly be adjusted.
It is provided for adjusting first group of volume adjustment button of the first volume gear in terminal and for adjusting second Second group of volume adjustment button of volume gear, and first group of volume adjustment button includes the first volume increment key and first Volume-down keys, user can increase by the first volume gear by the first volume increment key, reduced by the first volume and pressed Key reduces the first volume gear;Second group of volume adjustment button includes the second volume increment key and the second volume-down keys, User can increase by the second volume gear by the second volume increment key, and the second volume is reduced by the second volume-down keys Gear.
First volume gear and the second volume gear are divided into default value shelves by terminal, and default value can be as needed Be configured and change, default value is not especially limited in the disclosure, for example, default value can for 5,10,20 or Person 30 etc..If it is intended to improve adjustment volume precision, default value can be set to larger data, such as 500 or 1000 etc..User often presses the button of volume adjustment, and volume gear is adjusted one grade or multi gear by terminal.
Embodiment 1
Fig. 1 is a kind of flow chart of the method for regulation volume according to an exemplary embodiment, as shown in figure 1, Adjusting the method for volume is used in terminal, comprises the following steps.
In step S101, when the first volume gear or the second volume gear of terminal are adjusted, the first sound is obtained Measure gear and the second volume gear;
In step s 102, according to the first volume gear and the second volume gear, the current volume value of computing terminal;
In step s 103, the current output volume of terminal is dimensioned to current volume value.
In summary, when the first volume gear or the second volume gear of terminal are adjusted, the first volume shelves are obtained Position and the second volume gear;According to the first volume gear and the second volume gear, the current volume value of computing terminal;By terminal Current output volume is dimensioned to current volume value.Due to going control eventually by the first volume gear and the second volume gear The size of the current output volume at end, so as to improve the precision of volume adjusting.
Embodiment 2
Fig. 2-1 is a kind of flow chart of the method for regulation volume according to an exemplary embodiment, such as Fig. 2-1 institutes Show, the method for regulation volume is used in terminal, comprises the following steps.
In step s 201, when the volume for detecting terminal, which adjusts button, to be pressed, button, adjustment are adjusted according to volume The the first volume gear or the second volume gear of terminal;
When user wants the first volume gear of increase, user can trigger the by pressing the first volume increment key One increase instruction is to terminal, when terminal, which detects the first volume increment key, to be pressed, and the first increase instruction is obtained, according to the First volume gear is improved one grade or multi gear by one increase instruction.
When the first volume gear increases to the first preset gear, when user continues to press the first volume increment key, eventually First volume gear is kept constant by end, and the second volume gear is improved into one grade or multi gear.
Wherein, the first preset gear can be configured and change as needed, in the disclosure to the first preset gear It is not especially limited.Can be for the highest gear of the first volume gear such as the first preset gear.
For example, the first volume gear is divided into 5 gears by terminal, current first volume gear is the 5th gear, by the second sound Amount gear is divided into 5 gears, and current second volume gear is the 2nd gear, then when user presses the first volume increment key, due to First volume gear is highest gear, then the first volume gear is kept constant by terminal, i.e. the first volume gear is the 5th volume shelves Position, it is the 3rd gear that the second volume gear is improved into one grade, i.e. the second volume gear.
User's ear is caused damage greatly in order to avoid sound becomes suddenly, when the first volume gear increases to the first default shelves During position, when user continues to press the first volume increment key, the first volume gear is adjusted to the first volume gear most by terminal Low-grade location, one grade or multi gear are improved by the second volume gear.
When user wants to reduce the first volume gear, user can trigger the by pressing the first volume-down keys One reduces instruction to terminal, when terminal, which detects the first volume-down keys, to be pressed, and obtains first and reduces instruction, according to the One reduces instruction reduces by one grade or multi gear by the first volume gear.
When the first volume gear is reduced to the second preset gear, when user continues to press the first volume-down keys, eventually First volume gear is kept constant by end, and the second volume gear is reduced into one grade or multi gear.
Wherein, the second preset gear can be configured and change as needed, in the disclosure to the second preset gear It is not especially limited.Can be for the lowest gear of the first volume gear such as the second preset gear.
When user wants the second volume gear of increase, user can trigger the by pressing the second volume increment key Two increase instructions are to terminal, when terminal, which detects the second volume increment key, to be pressed, and the second increase instruction obtained, according to the Second volume gear is improved one grade or multi gear by two increase instructions.
When user wants to reduce the second volume gear, user can trigger the by pressing the second volume-down keys Two reduce instruction to terminal, when terminal, which detects the second volume-down keys, to be pressed, and obtain second and reduce instruction, according to the Two reduce instruction reduces by one grade or multi gear by the second volume gear.
In the disclosure, when the volume for detecting terminal, which adjusts button, to be pressed, it is first determined the volume being pressed is adjusted Whole button is first group of volume adjustment button for adjusting the first volume gear or for adjusting the second volume gear Two groups of volumes adjust buttons, if volume adjustment button be for adjust second group of volume adjustment of the second volume gear by Key, it is determined that user wants the second volume gear of adjustment, adjusts button according to second group of volume and determines that second group of volume is adjusted Button is the second volume increment key for increasing by the second volume gear or the second sound for reducing the second volume gear Amount reduces button;If second group of volume adjustment button is for increasing the second volume increment key of the second volume gear, The second volume gear is then improved into one grade or multi gear;If second group of volume adjustment button is for reducing the second volume gear The second volume-down keys, then by the second volume gear reduce by one grade or multi gear.
If volume adjustment button is to adjust button for adjusting first group of volume of the first volume gear, it is determined that used The first volume gear of adjustment or the second volume gear are wanted in family, and button is adjusted according to the first volume gear and the volume, it is determined that Button is adjusted according to volume and adjusts the first volume gear or the second volume gear.
Wherein, button is adjusted according to the first volume gear and the volume, it is determined that adjusting button according to volume adjusts the first sound Amount gear or the step of the second volume gear can be:
Button is adjusted according to the volume, the corresponding preset gear of the first volume gear is obtained;If the volume adjusts button For the first volume increment key for adjusting the first volume gear, then the first preset gear is obtained;When the volume adjusts button For the first volume increment key for adjusting the first volume gear, the first volume gear is obtained, determines that the first volume gear is No is the first preset gear, when the first volume gear is the first preset gear, it is determined that adjust button by the second sound according to volume Measure gear to improve, the second volume gear is improved one grade or two grades etc., the first volume gear is adjusted to the first volume most Low-grade location;When the first volume gear is not the first preset gear, then button is adjusted by the first volume gear raising one according to volume Shelves or two grades etc..
If volume adjustment button is the first volume-down keys for adjusting the first volume gear, second is obtained Preset gear, whether determine the first volume gear is the second preset gear, when the first volume gear be the second preset gear, then really It is fixed to be reduced the second volume gear according to volume adjustment button, the second volume gear is reduced into one grade or multi gear;When the first volume Gear is not the second preset gear, then adjusts button by the first volume gear reduction by one grade or multi gear according to volume.
In the disclosure, volume is set to adjust interface in terminal, volume adjustment interface includes being used to adjust first First group of volume adjustment button of volume gear and second group of volume adjustment button for adjusting the second volume gear.
When user want adjustment the first volume gear when, either when user want adjustment the second volume gear when or work as When user wants to adjust the first volume gear and the second volume gear simultaneously, user can enter volume and adjust interface, pass through sound First group of volume adjustment button in amount adjustment interface adjusts the first volume gear, and second group of sound in interface is adjusted by volume Amount adjustment button adjusts the second volume gear.
Wherein, first group of volume adjustment button includes the first volume increment key and the first volume-down keys, second group Volume adjustment button includes the second volume increment key and the second volume-down keys.
When user wants the first volume gear of increase, user can press the first volume increment key to trigger the first increasing Plus instruct to terminal, when terminal, which detects the first volume increment key, to be pressed, the first increase instruction is obtained, is increased according to first Plus instruct one grade of the first volume gear raising.Equally, user can press the first volume-down keys to trigger the first reduction Instruct to terminal, when terminal, which detects the first volume-down keys, to be pressed, obtain first and reduce instruction, reduce according to first First volume gear is reduced one grade by instruction.
When user wants the second volume gear of increase, user can press the second volume increment key to trigger the second increasing Plus instruct to terminal, when terminal, which detects the second volume increment key, to be pressed, the second increase instruction is obtained, is increased according to second Plus instruct one grade of the second volume gear raising.Equally, user can press the second volume-down keys to trigger the second reduction Instruct to terminal, when terminal, which detects the second volume-down keys, to be pressed, obtain second and reduce instruction, reduce according to second Second volume gear is reduced one grade by instruction.
Alternatively, user can also perform slide to adjust the first volume gear or the in volume adjustment interface Two volume gears, as shown in Fig. 2-2, user's finger upward sliding, to increase the first volume gear or the second volume gear, is used Family finger slide downward, to reduce the first volume gear or the second volume gear.
When terminal detects the slide of user's execution, touch location, the cunning of slide of user's finger are obtained Dynamic direction and sliding distance;First volume gear or the second sound are adjusted according to the touch location, glide direction and sliding distance Measure gear.
The corresponding first touch location scope of the first volume gear of regulation and the second volume gear corresponding second are touched in advance Position range is touched, when the touch location is located in the range of the first touch location, according to sliding distance and default unit distance meter Adjustment gear is calculated, if the glide direction is increase volume gear corresponding first preset direction, the first volume gear is carried The high adjustment gear;If changing glide direction to reduce during corresponding second preset direction of volume gear, by the first volume gear Reduce the adjustment gear.
Wherein, calculating the step of adjusting gear according to sliding distance and pre-determined distance can be:
Sliding distance and the ratio of default unit distance are calculated, the ratio is regard as adjustment gear.Optionally, if changing ratio Value is not integer, using the integer part of the ratio as adjustment gear, or using the integer part of the ratio adds one as adjusting Gear.
Equally, if the touch location is located in the range of the second touch location, the second volume shelves are adjusted by the above process Position.
Wherein, the first preset direction can be upward, and the second preset direction can be downward etc..
It should be noted that in the disclosure, when terminal determines to need the second volume gear of adjustment, terminal can also be obtained The capacitance and resistance value of terminal are taken, according to the capacitance and resistance value, volume gear is calculated, the second volume gear is adjusted to The volume gear that the calculating is obtained.
In step S202, the first volume gear and the second volume gear are obtained;
When the first volume gear or the second volume gear of terminal are adjusted, determine that user changes the current of terminal The size of output volume, now obtains the first volume gear and the second volume gear.
It should be noted that the first volume gear and the second volume gear that terminal is obtained all are the volume shelves after adjustment Position.
In step S203, according to the first volume gear and the second volume gear, the current volume value of computing terminal;
In the disclosure, terminal can be corresponding by corresponding first volume value of the first volume gear and the second volume gear The product of second volume value namely is realized by following first way as the current volume value of terminal;Terminal can also be by Corresponding first volume value of first volume gear and corresponding second volume value of the second volume gear and be used as the current of terminal Volume value, namely realized by the following second way.
For the first implementation, step S203 can be realized by following steps (1) and (2), including:
(1):Obtain the corresponding first volume percentage of the first volume gear and corresponding second volume of the second volume gear Percentage;
According to the first volume gear present position, is obtained from the corresponding relation of first position and the first percentage The corresponding first volume percentage of one volume gear, and according to the second volume gear present position, from the second place and The corresponding second volume percentage of the second volume gear is obtained in the corresponding relation of second percentage.
(2):According to total volume value of the first volume percentage, the second volume percentage and terminal, computing terminal it is current Volume value.
The product of the three of total volume value of the first volume percentage, the second volume percentage and terminal is calculated, this is multiplied The long-pending current volume value as terminal.
For example, the first volume percentage is 100%, the second volume percentage is 75%, and total volume value of terminal is 100, Then the current volume value of terminal is 100%*75%*100=75.
For second of implementation, step S203 can be realized by following steps (A) to (C), including:
(A):Obtain the corresponding first volume percentage of the first volume gear and corresponding second volume of the second volume gear Percentage;
According to the first volume gear present position, is obtained from the corresponding relation of first position and the first percentage The corresponding first volume percentage of one volume gear, and according to the second volume gear present position, from the second place and The corresponding second volume percentage of the second volume gear is obtained in the corresponding relation of second percentage.
(B):According to the first volume percentage and total volume value of the first volume gear, the first volume gear is calculated corresponding First volume value;
The product of total volume value of the first volume percentage and the first volume gear is calculated, the product is regard as the first volume Corresponding first volume value of gear.
(C):According to the second volume percentage and total volume value of the second volume gear, the second volume gear is calculated corresponding Second volume value;
The product of total volume value of the second volume percentage and the second volume gear is calculated, the product is regard as the second volume Corresponding second volume value of gear.
(D):According to the first current volume value and the second current volume value, the current volume value of computing terminal.
The sum of the first current volume value and the second current volume value is calculated, using this and the current volume value of terminal is used as.
In step S204, the current output volume of terminal is dimensioned to current volume value.
The output volume of the loudspeaker of terminal can be set to current volume value, make the loudspeaker of terminal play out volume to work as The sound of preceding volume value, current volume value is dimensioned to realize by the current output volume of terminal.
In summary, when the first volume gear or the second volume gear of terminal are adjusted, the first volume shelves are obtained Position and the second volume gear;According to the first volume gear and the second volume gear, the current volume value of computing terminal;By terminal Current output volume is dimensioned to current volume value.Due to going control eventually by the first volume gear and the second volume gear The size of the current output volume at end, so as to improve the precision of volume adjusting.
Embodiment 3
Following is disclosure device embodiment, can be used for performing method of disclosure embodiment.It is real for disclosure device The details not disclosed in example is applied, method of disclosure embodiment is refer to.
Fig. 3-1 is a kind of block diagram of the device of regulation volume according to an exemplary embodiment.The regulation volume Device can by software, hardware or both be implemented in combination with it is some or all of as electronic equipment.The regulation volume Device can include:
Acquisition module 301, when the first volume gear or the second volume gear for being configured as terminal are adjusted, is obtained First volume gear and the second volume gear;
Computing module 302, is configured as according to the first volume gear and the second volume gear, the current volume of computing terminal Value;
Setup module 303, is configured as the current output volume of terminal being dimensioned to current volume value.
Fig. 3-2 is the block diagram of the device of another regulation volume according to an exemplary embodiment.
Optionally, computing module 302, including:
First acquisition unit 3021, is configured as obtaining the corresponding first volume percentage of the first volume gear and the second sound Measure the corresponding second volume percentage of gear;
Computing unit 3022, is configured as total volume according to the first volume percentage, the second volume percentage and terminal Value, the current volume value of computing terminal.
Optionally, the device also includes:
Adjusting module 304, when being configured as detecting the volume adjustment button of terminal and being pressed, is pressed according to volume adjustment Key, the first volume gear of adjustment or the second volume gear.
Optionally, adjusting module 304, including:
Second acquisition unit 3041, is configured as when volume adjusts button and is used to adjust the first volume gear of terminal, Obtain the first volume gear;
First adjustment unit 3042, is configured as the first volume gear for preset gear, then adjusts button according to volume Adjust the second volume gear;
Second adjustment unit 3043, it is not preset gear to be configured as the first volume gear, then is pressed according to volume adjustment Key adjusts the first volume gear.
Optionally, adjusting module 304, in addition to:
3rd adjustment unit 3044, is configured as the first volume gear being adjusted to lowest gear.
In summary, when the first volume gear or the second volume gear of terminal are adjusted, the first volume shelves are obtained Position and the second volume gear;According to the first volume gear and the second volume gear, the current volume value of computing terminal;By terminal Current output volume is dimensioned to current volume value.Due to going control eventually by the first volume gear and the second volume gear The size of the current output volume at end, so as to improve the precision of volume adjusting.
Embodiment 4
Fig. 4 is a kind of block diagram for being used to adjust the device 1000 of volume according to an exemplary embodiment.For example, dress It can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, doctor to put 1000 Treat equipment, body-building equipment, personal digital assistant etc..
Reference picture 4, device 1000 can include following one or more assemblies:Processing assembly 1002, memory 1004, electricity Source component 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of input/output (I/O), sensor cluster 1014, and communication component 1016.
The integrated operation of the usual control device 1000 of processing assembly 1002, such as with display, call, data communication, The camera operation operation associated with record operation.Processing assembly 1002 can include one or more processors 1020 to perform Instruction, to complete all or part of step of above-mentioned method.In addition, processing assembly 1002 can include one or more moulds Block, is easy to the interaction between processing assembly 1002 and other assemblies.For example, processing assembly 1002 can include multi-media module, To facilitate the interaction between multimedia groupware 1008 and processing assembly 1002.
Memory 1004 is configured as storing various types of data supporting the operation in device 1000.These data Example includes the instruction of any application program or method for being used to operate on device 1000, contact data, telephone book data, Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they Combination realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1006 provides electric power for the various assemblies of device 1000.Power supply module 1006 can include power management System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 1000.
Multimedia groupware 1008 is included in the screen of one output interface of offer between described device 1000 and user. In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch and passed Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip be dynamic The border of work, but also the detection duration related to the touch or slide and pressure.In certain embodiments, it is many Media component 1008 includes a front camera and/or rear camera.When device 1000 is in operator scheme, mould is such as shot When formula or video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each preposition shooting Head and rear camera can be a fixed optical lens systems or with focusing and optical zoom capabilities.
Audio-frequency assembly 1010 is configured as output and/or input audio signal.For example, audio-frequency assembly 1010 includes a wheat Gram wind (MIC), when device 1000 is in operator scheme, when such as call model, logging mode and speech recognition mode, microphone quilt It is configured to receive external audio signal.The audio signal received can be further stored in memory 1004 or via communication Component 1016 is sent.In certain embodiments, audio-frequency assembly 1010 also includes a loudspeaker, for exports audio signal.
I/O interfaces 1012 are that interface, above-mentioned peripheral interface module are provided between processing assembly 1002 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor cluster 1014 includes one or more sensors, and the state for providing various aspects for device 1000 is commented Estimate.For example, sensor cluster 1014 can detect opening/closed mode of device 1000, the relative positioning of component, such as institute Display and keypad that component is device 1000 are stated, sensor cluster 1014 can be with detection means 1000 or device 1,000 1 The position of individual component changes, the existence or non-existence that user contacts with device 1000, the orientation of device 1000 or acceleration/deceleration and dress Put 1000 temperature change.Sensor cluster 1014 can include proximity transducer, be configured in not any physics The presence of object nearby is detected during contact.Sensor cluster 1014 can also include optical sensor, such as CMOS or ccd image sensing Device, for being used in imaging applications.In certain embodiments, the sensor cluster 1014 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress The wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof can be accessed by putting 1000.It is exemplary at one In embodiment, communication component 1016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1016 also includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuits (ASIC), numeral Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, the method for performing above-mentioned regulation volume.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 1004 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 1020 of device 1000.Example Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 1000 When device is performed so that device 1000 is able to carry out a kind of method for adjusting volume.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice disclosure disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (9)

1. a kind of method for adjusting volume, it is characterised in that methods described includes:
When the first volume gear or the second volume gear of terminal are adjusted, the first volume gear and described the are obtained Two volume gears;
Obtain the corresponding first volume percentage of the first volume gear and corresponding second volume of the second volume gear Percentage;
According to total volume value of the first volume percentage, the second volume percentage and the terminal, the end is calculated The current volume value at end;
The current output volume of the terminal is dimensioned to the current volume value.
2. the method as described in claim 1, it is characterised in that methods described also includes:
When the volume for detecting the terminal, which adjusts button, to be pressed, button, adjustment described first are adjusted according to the volume Volume gear or the second volume gear.
3. method as claimed in claim 2, it is characterised in that described that button, adjustment described first are adjusted according to the volume Volume gear or the second volume gear, including:
If the volume adjustment button is used for the first volume gear for adjusting the terminal, the first volume shelves are obtained Position;
When the first volume gear is preset gear, then adjusting button according to the volume adjusts the second volume gear;
When the first volume gear is not preset gear, then adjusting button according to the volume adjusts the first volume shelves Position.
4. method as claimed in claim 3, it is characterised in that described that button adjustment second sound is adjusted according to the volume After amount gear, in addition to:
The first volume gear is adjusted to lowest gear.
5. a kind of device for adjusting volume, it is characterised in that described device includes:
Acquisition module, when the first volume gear or the second volume gear for being configured as terminal are adjusted, obtains described the One volume gear and the second volume gear;
First acquisition unit, is configured as obtaining the corresponding first volume percentage of the first volume gear and second sound Measure the corresponding second volume percentage of gear;
Computing unit, is configured as according to the total of the first volume percentage, the second volume percentage and the terminal Volume value, calculates the current volume value of the terminal;
Setup module, is configured as the current output volume of the terminal being dimensioned to the current volume value.
6. device as claimed in claim 5, it is characterised in that described device also includes:
Adjusting module, when being configured as detecting the volume adjustment button of the terminal and being pressed, is adjusted according to the volume Button, adjusts the first volume gear or the second volume gear.
7. device as claimed in claim 6, it is characterised in that the adjusting module, including:
Second acquisition unit, is configured as when the volume adjusts button and is used to adjust the first volume gear of the terminal, Obtain the first volume gear;
First adjustment unit, is configured as the first volume gear for preset gear, then adjusts button according to the volume Adjust the second volume gear;
Second adjustment unit, it is not preset gear to be configured as the first volume gear, then is pressed according to volume adjustment Key adjusts the first volume gear.
8. device as claimed in claim 7, it is characterised in that the adjusting module, in addition to:
3rd adjustment unit, is configured as the first volume gear being adjusted to lowest gear.
9. a kind of device for adjusting volume, it is characterised in that described device includes:
Processor;
For the memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
When the first volume gear or the second volume gear of terminal are adjusted, the first volume gear and described the are obtained Two volume gears;
According to the first volume gear and the second volume gear, the current volume value of the terminal is calculated;
Obtain the corresponding first volume percentage of the first volume gear and corresponding second volume of the second volume gear Percentage;
According to total volume value of the first volume percentage, the second volume percentage and the terminal, the end is calculated The current volume value at end;
The current output volume of the terminal is dimensioned to the current volume value.
CN201510018630.6A 2015-01-14 2015-01-14 The method and apparatus for adjusting volume Active CN104601126B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510018630.6A CN104601126B (en) 2015-01-14 2015-01-14 The method and apparatus for adjusting volume

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510018630.6A CN104601126B (en) 2015-01-14 2015-01-14 The method and apparatus for adjusting volume

Publications (2)

Publication Number Publication Date
CN104601126A CN104601126A (en) 2015-05-06
CN104601126B true CN104601126B (en) 2017-11-07

Family

ID=53126699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510018630.6A Active CN104601126B (en) 2015-01-14 2015-01-14 The method and apparatus for adjusting volume

Country Status (1)

Country Link
CN (1) CN104601126B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072273B (en) * 2015-08-07 2018-09-11 广东欧珀移动通信有限公司 A kind of mobile terminal loudness adjusting method and system
CN108549268A (en) * 2018-05-22 2018-09-18 珠海格力电器股份有限公司 A kind of gear method of adjustment, device, household electrical appliance and readable storage medium storing program for executing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1780155A (en) * 2004-11-24 2006-05-31 英华达(上海)电子有限公司 Volume adjusting method of frequency-modulated radio with cell phone
CN101350604A (en) * 2007-07-19 2009-01-21 鸿富锦精密工业(深圳)有限公司 Apparatus and method for automatically switching volume control mode
CN102340584A (en) * 2010-07-20 2012-02-01 中国移动通信有限公司 Method and device for adjusting sound volume
CN103995653A (en) * 2014-06-09 2014-08-20 联想(北京)有限公司 Parameter adjusting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1780155A (en) * 2004-11-24 2006-05-31 英华达(上海)电子有限公司 Volume adjusting method of frequency-modulated radio with cell phone
CN101350604A (en) * 2007-07-19 2009-01-21 鸿富锦精密工业(深圳)有限公司 Apparatus and method for automatically switching volume control mode
CN102340584A (en) * 2010-07-20 2012-02-01 中国移动通信有限公司 Method and device for adjusting sound volume
CN103995653A (en) * 2014-06-09 2014-08-20 联想(北京)有限公司 Parameter adjusting method and device

Also Published As

Publication number Publication date
CN104601126A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
US11706577B2 (en) Systems and methods for equalizing audio for playback on an electronic device
KR101900405B1 (en) Method and device for charge management, program and recording medium
CN104021148B (en) Method and device for adjusting sound effect
CN104683691B (en) Image pickup method, device and equipment
CN105306824A (en) Shooting parameter adjusting method and device
CN103986999B (en) A kind of method, apparatus and terminal device of test earphone impedance
CN104281432A (en) Method and device for regulating sound effect
CN106055145A (en) Operating mode determination method and apparatus of terminal
CN105472469A (en) Video playing progress adjusting method and apparatus
CN107360326A (en) terminal volume adjusting processing method and terminal
CN107493500A (en) Multimedia resource player method and device
CN106802808A (en) Suspension button control method and device
CN104464674B (en) Liquid crystal display method of adjustment and device
CN107515669A (en) Display methods and device
CN104793843A (en) Desktop display method and device
CN104378715A (en) Device and method for lowering earphone POP sound
CN106095300A (en) Playing progress rate method of adjustment and device
CN107368280A (en) Method for controlling volume, device and the interactive voice equipment of interactive voice
CN105516451A (en) Sound effect adjustment method and device
CN104682908A (en) Method and device for controlling volume
CN104601126B (en) The method and apparatus for adjusting volume
CN110399082A (en) A kind of terminal attribute control method, device, electronic equipment and medium
CN107908346A (en) For controlling the method and device of screen display
CN106791897A (en) Living broadcast interactive method and device based on video playback platform
CN107277220A (en) Control method for playing back, device and terminal

Legal Events

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