CN104601126A - Method and device for adjusting volume - Google Patents
Method and device for adjusting volume Download PDFInfo
- Publication number
- CN104601126A CN104601126A CN201510018630.6A CN201510018630A CN104601126A CN 104601126 A CN104601126 A CN 104601126A CN 201510018630 A CN201510018630 A CN 201510018630A CN 104601126 A CN104601126 A CN 104601126A
- Authority
- CN
- China
- Prior art keywords
- volume
- gear
- terminal
- volume gear
- adjustment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000001105 regulatory effect Effects 0.000 claims description 15
- 238000004891 communication Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 238000003825 pressing Methods 0.000 description 7
- 230000009467 reduction Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000000712 assembly Effects 0.000 description 3
- 238000000429 assembly Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03G—CONTROL OF AMPLIFICATION
- H03G3/00—Gain control in amplifiers or frequency changers
- H03G3/02—Manually-operated control
Landscapes
- Telephone Function (AREA)
Abstract
The invention relates to a method and a device for adjusting volume. The method and the device for adjusting the volume belong to the technical field of electronics . The method comprises the following steps of when a first volume tap position or a second volume tap position of a terminal are adjusted, acquiring the first volume tap position and the second volume tap position; according to the first volume tap position and the second volume tap position, calculating a current volume value of the terminal; setting the volume size of the current output volume of the terminal to be the current volume value. The device comprises an acquisition module, a calculation module and a setting module. According to the method and the device for adjusting the volume, the size of the current output volume of the terminal is controlled through the first volume tap position and the second volume tap position, so that the accuracy of volume adjustment is improved.
Description
Technical field
The disclosure is directed to electronic technology field, especially about a kind of method and apparatus regulating volume.
Background technology
When user listens to the music and switches song, because the volume of different song itself may be different, terminal plays sound is out caused to vary, some sound is greatly to sounding very uncomfortable, and some sound is little of allowing people can not hear clearly, this just needs user to regulate the size of terminal volume, reaches comparatively comfortable effect.
At present, volume is divided into multistage by terminal, and user often presses the volume increment key in a terminal, and current volume is improved single order by terminal; Equally, user often presses the volume-down keys in a terminal, and current volume is reduced single order by terminal.
Disclosure
In order to overcome the problem of correlation technique, present disclose provides a kind of method and apparatus regulating volume.
According to the first aspect of disclosure embodiment, a kind of method regulating volume is provided, comprises:
When the first volume gear or the second volume gear generation adjustment of terminal, obtain described first volume gear and described second volume gear;
According to described first volume gear and described second volume gear, calculate the current volume value of described terminal;
The size of the current output volume of described terminal is set to described current volume value.
In one embodiment, described according to described first volume gear and described second volume gear, calculate the current volume value of described terminal, comprising:
Obtain the first volume percentage corresponding to described first volume gear and the second volume percentage corresponding to described second volume gear;
According to total volume value of described first volume percentage, described second volume percentage and described terminal, calculate the current volume value of described terminal.
In one embodiment, described method also comprises:
When detecting that the volume adjustment button of described terminal is pressed, according to described volume adjustment button, adjust described first volume gear or described second volume gear.
In one embodiment, described according to described volume adjustment button, adjust described first volume gear or described second volume gear, comprising:
If described volume adjustment button for adjusting the first volume gear of described terminal, then obtains described first volume gear;
When described first volume gear is preset gear, then according to the described second volume gear of described volume adjustment button adjustment;
When described first volume gear is not preset gear, then according to the described first volume gear of described volume adjustment button adjustment.
In one embodiment, described according to after the described second volume gear of described volume adjustment button adjustment, also comprise:
Described first volume gear is adjusted to lowest gear.
According to the second aspect of disclosure embodiment, a kind of device regulating volume is provided, comprises:
Acquisition module, is configured to, when adjustment occurs for the first volume gear of terminal or the second volume gear, obtain described first volume gear and described second volume gear;
Computing module, is configured to, according to described first volume gear and described second volume gear, calculate the current volume value of described terminal;
Module is set, is configured to the size of the current output volume of described terminal to be set to described current volume value.
In one embodiment, described computing module, comprising:
First acquiring unit, is configured to obtain the first volume percentage corresponding to described first volume gear and the second volume percentage corresponding to described second volume gear;
Computing unit, is configured to, according to total volume value of described first volume percentage, described second volume percentage and described terminal, calculate the current volume value of described terminal.
In one embodiment, described device also comprises:
Adjusting module, is configured to, when detecting that the volume adjustment button of described terminal is pressed, according to described volume adjustment button, adjust described first volume gear or described second volume gear.
In one embodiment, described adjusting module, comprising:
Second acquisition unit, is configured to, when described volume adjustment button is for adjusting the first volume gear of described terminal, obtain described first volume gear;
First adjustment unit, is configured to when described first volume gear is preset gear, then according to the described second volume gear of described volume adjustment button adjustment;
Second adjustment unit, is configured to when described first volume gear is not preset gear, then according to the described first volume gear of described volume adjustment button adjustment.
In one embodiment, described adjusting module, also comprises:
3rd adjustment unit, is configured to described first volume gear to be adjusted to lowest gear.
According to the third aspect of disclosure embodiment, a kind of device regulating volume is provided, comprises:
Processor;
For storing the memory of the executable instruction of described processor;
Wherein, described processor is configured to:
When the first volume gear or the second volume gear generation adjustment of terminal, obtain described first volume gear and described second volume gear;
According to described first volume gear and described second volume gear, calculate the current volume value of described terminal;
The size of the current output volume of described terminal is set to described current volume value.
The technical scheme that disclosure embodiment provides can comprise following beneficial effect:
When the first volume gear or the second volume gear generation adjustment of terminal, obtain the first volume gear and the second volume gear; According to the first volume gear and the second volume gear, the current volume value of computing terminal; The size of the current output volume of terminal is set to current volume value.Owing to being gone the size of the current output volume of control terminal by the first volume gear and the second volume gear, thus improve the precision of volume adjusting.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide further understanding of the disclosure, forms a application's part, does not form restriction of the present disclosure.In the accompanying drawings:
Fig. 1 is a kind of flow chart regulating the method for volume according to an exemplary embodiment 1;
Fig. 2-1 is a kind of flow chart regulating the method for volume according to an exemplary embodiment 2;
Fig. 2-2 is a kind of interface schematic diagrames regulating the first volume gear or the second volume gear according to an exemplary embodiment 2;
Fig. 3-1 is a kind of block diagram regulating the device of volume according to an exemplary embodiment 3;
Fig. 3-2 is block diagrams that another kind according to an exemplary embodiment 3 regulates the device of volume;
Fig. 4 is a kind of block diagram regulating the device of volume according to an exemplary embodiment 4.
Embodiment
For making object of the present disclosure, technical scheme and advantage clearly understand, below in conjunction with execution mode and accompanying drawing, the disclosure is described in further details.At this, exemplary embodiment of the present disclosure and illustrating for explaining the disclosure, but not as to restriction of the present disclosure.
Terminal of the present disclosure comprises two volume gears, is respectively the first volume gear and the second volume gear, and the first volume gear and the second volume gear determine the size of the current output volume of terminal jointly.
First volume gear refers to fine setting volume gear, and user can adjust the volume of terminal by a small margin by the first volume gear on the basis of the second volume gear; Second volume gear refers to homophony volume gear, and user significantly can adjust the volume of terminal by the second volume gear.
Terminal arranges first group of volume adjustment button for adjusting the first volume gear and second group of volume adjustment button for adjusting the second volume gear, and first group of volume adjustment button comprises the first volume increment key and the first volume-down keys, user can increase by the first volume gear by the first volume increment key, reduces the first volume gear by the first volume-down keys; Second group of volume adjustment button comprises the second volume increment key and the second volume-down keys, and user can increase by the second volume gear by the second volume increment key, reduces the second volume gear by the second volume-down keys.
First volume gear and the second volume gear are divided into default value shelves by terminal, and default value can carry out arranging and changing as required, does not do concrete restriction in the disclosure to default value, and such as, default value can be 5,10,20 or 30 etc.If want the precision improving adjustment volume, default value can be set to larger data, as 500 or 1000 etc.User often presses the button of volume adjustment, and volume gear is adjusted one grade or many grades by terminal.
Embodiment 1
Fig. 1 is the flow chart of the method for a kind of adjustment volume according to an exemplary embodiment, as shown in Figure 1, regulates the method for volume to be used for, in terminal, comprising the following steps.
In step S101, when the first volume gear or the second volume gear generation adjustment of terminal, obtain the first volume 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 size of the current output volume of terminal is set to current volume value.
In sum, when the first volume gear or the second volume gear generation adjustment of terminal, obtain the first volume gear and the second volume gear; According to the first volume gear and the second volume gear, the current volume value of computing terminal; The size of the current output volume of terminal is set to current volume value.Owing to being gone the size of the current output volume of control terminal by the first volume gear and the second volume gear, thus improve the precision of volume adjusting.
Embodiment 2
Fig. 2-1 is a kind of flow chart regulating the method for volume according to an exemplary embodiment, as shown in Fig. 2-1, regulates the method for volume to be used for, in terminal, comprising the following steps.
In step s 201, when detecting that the volume adjustment button of terminal is pressed, according to volume adjustment button, the first volume gear of adjustment terminal or the second volume gear;
When user wants increase by first volume gear, user can by pressing first volume increment key to trigger the first increase instruction to terminal, when terminal detects that the first volume increment key is pressed, obtain first and increase instruction, increase instruction according to first and first volume gear is improved one grade or many grades.
When the first volume gear is increased to the first preset gear, when user continues pressing the first volume increment key, the first volume gear remains unchanged by terminal, and the second volume gear is improved one grade or many grades.
Wherein, the first preset gear can carry out arranging and changing as required, does not do concrete restriction in the disclosure to the first preset gear.Such as the first preset gear can be most high tap position of the first volume gear etc.
Such as, first volume gear is divided into 5 gears by terminal, current first volume gear is the 5th gear, and the second volume gear is divided into 5 gears, and current second volume gear is the 2nd gear, when then user presses the first volume increment key, because the first volume gear is most high tap position, then the first volume gear remains unchanged by terminal, and namely the first volume gear is the 5th volume gear, second volume gear is improved one grade, and namely the second volume gear is the 3rd gear.
Greatly user's ear is caused damage in order to avoid sound becomes suddenly, when the first volume gear is increased to the first preset gear, when user continues pressing the first volume increment key, first volume gear is adjusted to the lowest gear of the first volume gear by terminal, and the second volume gear is improved one grade or many grades.
When user wants reduction first volume gear, user can by pressing first volume-down keys to trigger the first reduction instruction to terminal, when terminal detects that the first volume-down keys is pressed, obtain first and reduce instruction, reduce instruction according to first and first volume gear is reduced by one grade or many grades.
When the first volume gear is reduced to the second preset gear, when user continues pressing the first volume-down keys, the first volume gear remains unchanged by terminal, and the second volume gear is reduced by one grade or many grades.
Wherein, the second preset gear can carry out arranging and changing as required, does not do concrete restriction in the disclosure to the second preset gear.Such as the second preset gear can be the lowest gear etc. of the first volume gear.
When user wants increase by second volume gear, user can by pressing second volume increment key to trigger the second increase instruction to terminal, when terminal detects that the second volume increment key is pressed, obtain second and increase instruction, increase instruction according to second and second volume gear is improved one grade or many grades.
When user wants reduction second volume gear, user can by pressing second volume-down keys to trigger the second reduction instruction to terminal, when terminal detects that the second volume-down keys is pressed, obtain second and reduce instruction, reduce instruction according to second and second volume gear is reduced by one grade or many grades.
In the disclosure, when detecting that the volume adjustment button of terminal is pressed, first determine that the volume adjustment button be pressed is first group of volume adjustment button for adjusting the first volume gear or second group of volume adjustment button for adjusting the second volume gear, if this volume adjustment button is second group of volume adjustment button for adjusting the second volume gear, then determine that user wants adjustment second volume gear, determine that this second group of volume adjustment button is for increasing the second volume increment key of the second volume gear or the second volume-down keys for reducing the second volume gear according to second group of volume adjustment button, if this second group of volume adjustment button is the second volume increment key for increasing the second volume gear, then the second volume gear is improved one grade or many grades, if this second group of volume adjustment button is the second volume-down keys for reducing the second volume gear, then the second volume gear is reduced by one grade or many grades.
If this volume adjustment button is first group of volume adjustment button for adjusting the first volume gear, then determine that user wants adjustment first volume gear or the second volume gear, according to the first volume gear and this volume adjustment button, determine to adjust the first volume gear or the second volume gear according to volume adjustment button.
Wherein, according to the first volume gear and this volume adjustment button, determine that the step adjusting the first volume gear or the second volume gear according to volume adjustment button can be:
According to this volume adjustment button, obtain the preset gear that the first volume gear is corresponding; If this volume adjustment button is the first volume increment key for adjusting the first volume gear, then obtain the first preset gear; When the first volume increment key that this volume adjustment button is for adjusting the first volume gear, obtain the first volume gear, determine whether the first volume gear is the first preset gear, when the first volume gear is the first preset gear, then determine according to volume adjustment button, the second volume gear to be improved, second volume gear is improved one grade or two grades etc., the first volume gear is adjusted to the lowest gear of the first volume; When the first volume gear is not the first preset gear, then according to volume adjustment button, the first volume gear is improved one grade or two grades etc.
If this volume adjustment button is the first volume-down keys for adjusting the first volume gear, then obtain the second preset gear, determine whether the first volume gear is the second preset gear, when the first volume gear is the second preset gear, then determine according to volume adjustment button, the second volume gear to be reduced, the second volume gear is reduced by one grade or many grades; When the first volume gear is not the second preset gear, then according to volume adjustment button, the first volume gear is reduced by one grade or many grades.
In the disclosure, terminal arranges volume adjustment interface, this volume adjustment interface comprises first group of volume adjustment button for adjusting the first volume gear and second group of volume adjustment button for adjusting the second volume gear.
When user wants adjustment first volume gear, or when user wants adjustment second volume gear, or when user wants to adjust the first volume gear and the second volume gear simultaneously, user can enter volume adjustment interface, adjust the first volume gear by first group of volume adjustment button in volume adjustment interface, adjust the second volume gear by second group of volume adjustment button in volume adjustment interface.
Wherein, first group of volume adjustment button comprises the first volume increment key and the first volume-down keys, and second group of volume adjustment button comprises the second volume increment key and the second volume-down keys.
When user wants increase by first volume gear, user can press the first volume increment key to trigger the first increase instruction to terminal, when terminal detects that the first volume increment key is pressed, obtaining first increases instruction, increases instruction the first volume gear is improved one grade according to first.Equally, user can press the first volume-down keys to trigger the first reduction instruction to terminal, when terminal detects that the first volume-down keys is pressed, obtains first and reduces instruction, reduces instruction the first volume gear is reduced one grade according to first.
When user wants increase by second volume gear, user can press the second volume increment key to trigger the second increase instruction to terminal, when terminal detects that the second volume increment key is pressed, obtaining second increases instruction, increases instruction the second volume gear is improved one grade according to second.Equally, user can press the second volume-down keys to trigger the second reduction instruction to terminal, when terminal detects that the second volume-down keys is pressed, obtains second and reduces instruction, reduces instruction the second volume gear is reduced one grade according to second.
Alternatively, user can also adjust in interface in volume and perform slide to adjust the first volume gear or the second volume gear, as shown in Fig. 2-2, user points upward sliding, to increase the first volume gear or the second volume gear, user points slide downward, to reduce the first volume gear or the second volume gear.
When terminal detects the slide that user performs, obtain the touch location of user's finger, the glide direction of slide and sliding distance; The first volume gear or the second volume gear is adjusted according to this touch location, glide direction and sliding distance.
The first touch location scope that prior regulation first volume gear is corresponding and the second touch location scope corresponding to the second volume gear, when this touch location is positioned at the first touch location scope, adjustment gear is calculated according to sliding distance and default unit distance, if this glide direction is, when increasing the first preset direction corresponding to volume gear, the first volume gear is improved this adjustment gear; If changing glide direction is, when reducing the second preset direction corresponding to volume gear, the first volume gear is reduced this adjustment gear.
Wherein, calculating according to sliding distance and predeterminable range the step adjusting gear can be:
Calculate the ratio of sliding distance and default unit distance, using this ratio as adjustment gear.Optionally, if changing ratio is not integer, using the integer part of this ratio as adjustment gear, or the integer part of this ratio is added one as adjustment gear.
Equally, if when this touch location is positioned at the second touch location scope, adjust the second volume gear by above method.
Wherein, the first preset direction can be upwards, and the second preset direction can be downward etc.
It should be noted that, in the disclosure, when terminal is determined to need adjustment second volume gear, terminal can also obtain capacitance and the resistance value of terminal, according to this capacitance and resistance value, compute volume gear, is adjusted to this volume gear calculated by the second volume gear.
In step S202, obtain the first volume gear and the second volume gear;
When the first volume gear or the second volume gear generation adjustment of terminal, determine that user changes the size of the current output volume of terminal, now obtain the first volume gear and the second volume gear.
It should be noted that, the first volume gear that terminal obtains and the second volume gear are all the volume gear after adjustment.
In step S203, according to the first volume gear and the second volume gear, the current volume value of computing terminal;
In the disclosure, namely terminal using the product of the first corresponding for the first volume gear volume value and the second volume value corresponding to the second volume gear as the current volume value of terminal, also can be realized by following first kind of way; Terminal also can using the first corresponding for the first volume gear volume value and the second volume value corresponding to the second volume gear and as the current volume value of terminal, also namely realized by the following second way.
For the first implementation, step S203 can pass through following steps (1) and (2) realize, and comprising:
(1): obtain the first volume percentage corresponding to the first volume gear and the second volume percentage corresponding to the second volume gear;
According to the first current position of volume gear, the first volume percentage corresponding to the first volume gear is obtained from the corresponding relation of primary importance and the first percentage, and according to the second current position of volume gear, from the corresponding relation of the second place and the second percentage, obtain the second volume percentage corresponding to the second volume gear.
(2): according to total volume value of the first volume percentage, the second volume percentage and terminal, the current volume value of computing terminal.
Calculate the product of the three of total volume value of the first volume percentage, the second volume percentage and terminal, using the current volume value of this product as terminal.
Such as, the first volume percentage is the 100%, 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 the second implementation, step S203 can pass through following steps (A) to (C) and realize, and comprising:
(A): obtain the first volume percentage corresponding to the first volume gear and the second volume percentage corresponding to the second volume gear;
According to the first current position of volume gear, the first volume percentage corresponding to the first volume gear is obtained from the corresponding relation of primary importance and the first percentage, and according to the second current position of volume gear, from the corresponding relation of the second place and the second percentage, obtain the second volume percentage corresponding to the second volume gear.
(B): according to total volume value of the first volume percentage and the first volume gear, calculate the first volume value that the first volume gear is corresponding;
Calculate the product of total volume value of the first volume percentage and the first volume gear, using this product as the first volume value corresponding to the first volume gear.
(C): according to total volume value of the second volume percentage and the second volume gear, calculate the second volume value that the second volume gear is corresponding;
Calculate the product of total volume value of the second volume percentage and the second volume gear, using this product as the second volume value corresponding to the second volume gear.
(D): according to the first current volume value and the second current volume value, the current volume value of computing terminal.
Calculate the first current volume value and the second current volume value and, using this with as the current volume value of terminal.
In step S204, the size of the current output volume of terminal is set to current volume value.
The output volume of the loudspeaker of terminal can be set to current volume value, the loudspeaker of terminal are played out sound that volume is current volume value, to realize the size of the current output volume of terminal to be set to current volume value.
In sum, when the first volume gear or the second volume gear generation adjustment of terminal, obtain the first volume gear and the second volume gear; According to the first volume gear and the second volume gear, the current volume value of computing terminal; The size of the current output volume of terminal is set to current volume value.Owing to being gone the size of the current output volume of control terminal by the first volume gear and the second volume gear, thus improve the precision of volume adjusting.
Embodiment 3
Following is disclosure device embodiment, may be used for performing disclosure embodiment of the method.For the details do not disclosed in disclosure device embodiment, please refer to disclosure embodiment of the method.
Fig. 3-1 is a kind of block diagram regulating the device of volume according to an exemplary embodiment.The device of this adjustment volume can realize becoming the some or all of of electronic equipment by software, hardware or both combinations.The device of this adjustment volume can comprise:
Acquisition module 301, is configured to, when adjustment occurs for the first volume gear of terminal or the second volume gear, obtain the first volume gear and the second volume gear;
Computing module 302, is configured to according to the first volume gear and the second volume gear, the current volume value of computing terminal;
Module 303 is set, is configured to the size of the current output volume of terminal to be set to current volume value.
Fig. 3-2 is block diagrams that another kind according to an exemplary embodiment regulates the device of volume.
Optionally, computing module 302, comprising:
First acquiring unit 3021, is configured to the first volume percentage corresponding to acquisition first volume gear and the second volume percentage corresponding to the second volume gear;
Computing unit 3022, is configured to the total volume value according to the first volume percentage, the second volume percentage and terminal, the current volume value of computing terminal.
Optionally, this device also comprises:
Adjusting module 304, is configured to, when detecting that the volume adjustment button of terminal is pressed, according to volume adjustment button, adjust the first volume gear or the second volume gear.
Optionally, adjusting module 304, comprising:
Second acquisition unit 3041, is configured to, when volume adjustment button is for adjusting the first volume gear of terminal, obtain the first volume gear;
First adjustment unit 3042, is configured to when the first volume gear is preset gear, then adjust the second volume gear according to volume adjustment button;
Second adjustment unit 3043, is configured to when the first volume gear is not preset gear, then adjust the first volume gear according to volume adjustment button.
Optionally, adjusting module 304, also comprises:
3rd adjustment unit 3044, is configured to the first volume gear to be adjusted to lowest gear.
In sum, when the first volume gear or the second volume gear generation adjustment of terminal, obtain the first volume gear and the second volume gear; According to the first volume gear and the second volume gear, the current volume value of computing terminal; The size of the current output volume of terminal is set to current volume value.Owing to being gone the size of the current output volume of control terminal by the first volume gear and the second volume gear, thus improve the precision of volume adjusting.
Embodiment 4
Fig. 4 is a kind of for regulating the block diagram of the device 1000 of volume according to an exemplary embodiment.Such as, device 1000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 4, device 1000 can comprise following one or more assembly: processing components 1002, memory 1004, power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of I/O (I/O), sensor cluster 1014, and communications component 1016.
The integrated operation of the usual control device 1000 of processing components 1002, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 1002 can comprise one or more processor 1020 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1002 can comprise one or more module, and what be convenient between processing components 1002 and other assemblies is mutual.Such as, processing components 1002 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1008 and processing components 1002.
Memory 1004 is configured to store various types of data to be supported in the operation of device 1000.The example of these data comprises for any application program of operation on device 1000 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 1004 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 1006 is device 1000 provide electric power.Power supply module 1006 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1000 and be associated.
Multimedia groupware 1008 is included in the screen providing an output interface between described device 1000 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 1008 comprises a front-facing camera and/or post-positioned pick-up head.When device 1000 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1010 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1010 comprises a microphone (MIC), and when device 1000 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 1004 further or be sent via communications component 1016.In certain embodiments, audio-frequency assembly 1010 also comprises a loud speaker, for output audio signal.
I/O interface 1012 is for providing interface between processing components 1002 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 1014 comprises one or more transducer, for providing the state estimation of various aspects for device 1000.Such as, sensor cluster 1014 can detect the opening/closing state of device 1000, the relative positioning of assembly, such as described assembly is display and the keypad of device 1000, the position of all right checkout gear 1000 of sensor cluster 1014 or device 1000 assemblies changes, the presence or absence that user contacts with device 1000, the variations in temperature of device 1000 orientation or acceleration/deceleration and device 1000.Sensor cluster 1014 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 1014 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1014 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 1016 is configured to the communication being convenient to wired or wireless mode between device 1000 and other equipment.Device 1000 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1016 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 1016 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1000 can be realized, for performing the method for above-mentioned adjustment volume by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 1004 of instruction, above-mentioned instruction can perform said method by the processor 1020 of device 1000.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of device 1000, makes device 1000 can perform a kind of method regulating volume.
Those skilled in the art, at consideration specification and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.
Claims (11)
1. regulate a method for volume, it is characterized in that, described method comprises:
When the first volume gear or the second volume gear generation adjustment of terminal, obtain described first volume gear and described second volume gear;
According to described first volume gear and described second volume gear, calculate the current volume value of described terminal;
The size of the current output volume of described terminal is set to described current volume value.
2. the method for claim 1, is characterized in that, described according to described first volume gear and described second volume gear, calculates the current volume value of described terminal, comprising:
Obtain the first volume percentage corresponding to described first volume gear and the second volume percentage corresponding to described second volume gear;
According to total volume value of described first volume percentage, described second volume percentage and described terminal, calculate the current volume value of described terminal.
3. the method for claim 1, is characterized in that, described method also comprises:
When detecting that the volume adjustment button of described terminal is pressed, according to described volume adjustment button, adjust described first volume gear or described second volume gear.
4. method as claimed in claim 3, is characterized in that, described according to described volume adjustment button, adjusts described first volume gear or described second volume gear, comprising:
If described volume adjustment button for adjusting the first volume gear of described terminal, then obtains described first volume gear;
When described first volume gear is preset gear, then according to the described second volume gear of described volume adjustment button adjustment;
When described first volume gear is not preset gear, then according to the described first volume gear of described volume adjustment button adjustment.
5. method as claimed in claim 4, is characterized in that, described according to after the described second volume gear of described volume adjustment button adjustment, also comprises:
Described first volume gear is adjusted to lowest gear.
6. regulate a device for volume, it is characterized in that, described device comprises:
Acquisition module, is configured to, when adjustment occurs for the first volume gear of terminal or the second volume gear, obtain described first volume gear and described second volume gear;
Computing module, is configured to, according to described first volume gear and described second volume gear, calculate the current volume value of described terminal;
Module is set, is configured to the size of the current output volume of described terminal to be set to described current volume value.
7. device as claimed in claim 6, it is characterized in that, described computing module, comprising:
First acquiring unit, is configured to obtain the first volume percentage corresponding to described first volume gear and the second volume percentage corresponding to described second volume gear;
Computing unit, is configured to, according to total volume value of described first volume percentage, described second volume percentage and described terminal, calculate the current volume value of described terminal.
8. device as claimed in claim 6, it is characterized in that, described device also comprises:
Adjusting module, is configured to, when detecting that the volume adjustment button of described terminal is pressed, according to described volume adjustment button, adjust described first volume gear or described second volume gear.
9. device as claimed in claim 8, it is characterized in that, described adjusting module, comprising:
Second acquisition unit, is configured to, when described volume adjustment button is for adjusting the first volume gear of described terminal, obtain described first volume gear;
First adjustment unit, is configured to when described first volume gear is preset gear, then according to the described second volume gear of described volume adjustment button adjustment;
Second adjustment unit, is configured to when described first volume gear is not preset gear, then according to the described first volume gear of described volume adjustment button adjustment.
10. device as claimed in claim 9, it is characterized in that, described adjusting module, also comprises:
3rd adjustment unit, is configured to described first volume gear to be adjusted to lowest gear.
11. 1 kinds of devices regulating volume, it is characterized in that, described device comprises:
Processor;
For storing the memory of the executable instruction of described processor;
Wherein, described processor is configured to:
When the first volume gear or the second volume gear generation adjustment of terminal, obtain described first volume gear and described second volume gear;
According to described first volume gear and described second volume gear, calculate the current volume value of described terminal;
The size of the current output volume of described terminal is set to described current volume value.
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 true CN104601126A (en) | 2015-05-06 |
CN104601126B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105072273A (en) * | 2015-08-07 | 2015-11-18 | 广东欧珀移动通信有限公司 | Method and system for adjusting volume of mobile terminal |
CN108549268A (en) * | 2018-05-22 | 2018-09-18 | 珠海格力电器股份有限公司 | Gear adjusting method and device, household appliance and readable storage medium |
Citations (4)
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 |
-
2015
- 2015-01-14 CN CN201510018630.6A patent/CN104601126B/en active Active
Patent Citations (5)
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 |
US20090022338A1 (en) * | 2007-07-19 | 2009-01-22 | Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd | Apparatus capable of switching volume adjustment mode automatically and volume adjustment method thereof |
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 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105072273A (en) * | 2015-08-07 | 2015-11-18 | 广东欧珀移动通信有限公司 | Method and system for adjusting volume of mobile terminal |
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 | 珠海格力电器股份有限公司 | Gear adjusting method and device, household appliance and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104601126B (en) | 2017-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104281432A (en) | Method and device for regulating sound effect | |
CN105262452A (en) | Method and apparatus for adjusting volume, and terminal | |
CN104021148B (en) | Method and device for adjusting sound effect | |
CN105306824A (en) | Shooting parameter adjusting method and device | |
CN105472469A (en) | Video playing progress adjusting method and apparatus | |
CN103986999B (en) | A kind of method, apparatus and terminal device of test earphone impedance | |
CN106888327B (en) | Voice playing method and device | |
CN107493500A (en) | Multimedia resource player method and device | |
CN104978200A (en) | Application program display method and device | |
CN105516586A (en) | Picture shooting method, device and system | |
CN104683691A (en) | Photographing method, device and equipment | |
CN104112459B (en) | Method and apparatus for playing audio data | |
CN104793843A (en) | Desktop display method and device | |
CN105337800A (en) | Polling frequency adjustment method and polling frequency adjustment device | |
CN105657186A (en) | Volume control method and device | |
CN105101013A (en) | Method and device for playing voice signals | |
CN105512615A (en) | Picture processing method and apparatus | |
CN104378715A (en) | Device and method for lowering earphone POP sound | |
CN105468236A (en) | Message prompting method and apparatus and terminal | |
CN105451056A (en) | Audio and video synchronization method and device | |
CN104682908A (en) | Method and device for controlling volume | |
CN105516451A (en) | Sound effect adjustment method and device | |
CN104159283A (en) | Method and device for controlling message transmission | |
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 |
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 |