CN106254610A - A kind of volume adjusting method, device and electronic equipment - Google Patents

A kind of volume adjusting method, device and electronic equipment Download PDF

Info

Publication number
CN106254610A
CN106254610A CN201610972294.3A CN201610972294A CN106254610A CN 106254610 A CN106254610 A CN 106254610A CN 201610972294 A CN201610972294 A CN 201610972294A CN 106254610 A CN106254610 A CN 106254610A
Authority
CN
China
Prior art keywords
value
volume
resistance value
predeterminated position
resistance
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.)
Pending
Application number
CN201610972294.3A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610972294.3A priority Critical patent/CN106254610A/en
Publication of CN106254610A publication Critical patent/CN106254610A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/23Construction or mounting of dials or of equivalent devices; Means for facilitating the use thereof
    • H04M1/236Construction or mounting of dials or of equivalent devices; Means for facilitating the use thereof including keys on side or rear faces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72466User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure provides a kind of volume adjusting method, device and electronic equipment, wherein volume adjusting method includes: when the power key being in the first predeterminated position occurs to slide, detects described power key and slides into the distance changing value between the second predeterminated position and described first predeterminated position;Calculate, with the first corresponding relation of resistance value, the resistance value that described second predeterminated position is corresponding according to described distance changing value;Resistance value according to described second predeterminated position calculates, with the second corresponding relation of volume value, the volume value that should export, and the volume value of the current output of regulation is to the volume value that should export.The disclosure uses sliding of power key to change the resistance value of resistance, according to the functional relationship regulation volume of resistance value with volume value, the volume adjusting button of desirable electric eliminating subset.

Description

A kind of volume adjusting method, device and electronic equipment
Technical field
It relates to technical field of electronic equipment, particularly relate to a kind of volume adjusting method, device and electronic equipment.
Background technology
Volume, also known as loudness, loudness of a sound, refers to the subjective feeling that the human ear sound size to being heard is strong and weak, its objective evaluation Yardstick is the amplitude size of sound.This impression is derived from produced pressure, i.e. acoustic pressure during object vibration.
In correlation technique, the volume adjusting key of electronic equipment is separately positioned with the power button of electronic equipment, typically arranges Side at electronic equipment.The power key of electronic equipment and volume adjusting key is thus made to protrude from the shell of electronic equipment, The asymmetric setting of power key and volume adjusting key have impact on the aesthetic feeling of the design of electronic equipment.
Summary of the invention
The disclosure provides a kind of volume adjusting method, device and electronic equipment, to solve the deficiency in correlation technique.
First aspect according to disclosure embodiment, it is provided that a kind of volume adjusting method, comprises the following steps:
When the power key being in the first predeterminated position occurs to slide, detect described power key and slide into the second predeterminated position And the distance changing value between described first predeterminated position;
Calculate, with the first corresponding relation of resistance value, the electricity that described second predeterminated position is corresponding according to described distance changing value Resistance;
Resistance value according to described second predeterminated position calculates, with the second corresponding relation of volume value, the volume value that should export, The volume value of the current output of regulation is to the volume value that should export.
Optionally, described volume adjusting method also includes step;
Length according to resistance and resistance value relation determine the distance changing value and described resistance value that described power key slides The first corresponding relation;
The second corresponding relation of described resistance value and volume value is determined according to the relation of diaphone value between resistor tracks.
Optionally, described the first corresponding relation according to described distance changing value with resistance value calculates described second and presets position The resistance value putting correspondence includes:
The distance changing value slided according to described power key and the first corresponding relation of described resistance value, calculate described power supply Increased resistance value corresponding to distance changing value that key slides;
The second resistance value of described second predeterminated position is determined based on described increased resistance value.
Optionally, described the first changing value based on described resistance determines the second resistance value of described second predeterminated position, Including:
Obtain the first resistance value when described power key is in described first predeterminated position;
It is in the first resistance value during the first predeterminated position according to described increased resistance value and described power key, determines described Second resistance value of the second predeterminated position.
Optionally, described calculating with the second corresponding relation of volume value according to the resistance value of described second predeterminated position should be defeated The volume value gone out, the volume value of the current output of regulation to the volume value that should export, including:
According to the second corresponding relation of described resistance value Yu volume value, calculate the second electricity of corresponding described second predeterminated position The volume value that resistance should export;
Regulate current output volume value to the described volume value that should export.
Second aspect according to disclosure embodiment, it is provided that a kind of volume adjustment device, can use power key to regulate volume, It is characterized in that, including:
Detection module, when being configured as the power key generation slip being in the first predeterminated position, detects described power key Slide into the distance changing value between the second predeterminated position and described first predeterminated position;
Relating module, is configured to the first corresponding relation according to described distance changing value with resistance value and calculates described second The resistance value that predeterminated position is corresponding;
Adjustment module, is configured to the second corresponding relation meter of the resistance value according to described second predeterminated position and volume value The volume value that calculation should export, the volume value of the current output of regulation is to the volume value that should export.
Optionally, described volume adjustment device also includes pre-seting module, described in pre-set module and include:
First pre-sets module, is configured to the length according to resistance and determines what described power key slided with resistance value relation Distance changing value and the first corresponding relation of described resistance value;
Second pre-sets module, be configured to according to the relation of diaphone value between resistor tracks determine described resistance value with Second corresponding relation of volume value.
Optionally, described relating module includes:
First association submodule, is configured to the of the distance changing value that slides according to described power key and described resistance value One corresponding relation, calculates the increased resistance value that the distance changing value of described power key slip is corresponding;Based on described increased resistance value Determine the second resistance value of described second predeterminated position.
Optionally, described relating module also includes:
Second association submodule, is configured to obtain the first resistance when described power key is in described first predeterminated position Value;It is in the first resistance value during the first predeterminated position according to described increased resistance value and described power key, determines described second Second resistance value of predeterminated position.
Optionally, described adjustment module includes:
Regulon module, is configured to the second corresponding relation according to described resistance value Yu volume value, calculates corresponding described The volume value that second resistance value of the second predeterminated position should export;
Regulate current output volume value to the described volume value that should export.
The third aspect according to disclosure embodiment, it is provided that a kind of electronic equipment, is provided with as above in described electronic equipment State arbitrary described volume adjustment device in embodiment;Described electronic equipment also includes:
Processor:
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Detect described power key and slide into the distance changing value of the second predeterminated position from the first predeterminated position;According to described away from The first corresponding relation from changing value with resistance value calculates the resistance value of described second predeterminated position;Position is preset according to described second The resistance value put calculates, with the second corresponding relation of volume value, the volume value that should export;
According to the described volume value that should export, regulate the volume adjusting of the volume value that should export described in correspondence.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
The disclosure uses sliding of power key to change the resistance value of resistance, adjusts according to the functional relationship of resistance value with volume value Joint volume, is different from button regulation volume mode in correlation technique.Make electronic equipment eliminate volume adjusting key, improve electronics The aesthetic feeling of equipment appearance design.
Accompanying drawing explanation
Fig. 1 is the FB(flow block) of a kind of volume adjusting method shown in the disclosure one exemplary embodiment.
Fig. 2 is the detailed process block diagram of step S200 in Fig. 1
Fig. 3 is the detail flowchart of step S300 in Fig. 1.
Fig. 4 is power key and the schematic diagram of resistance in a kind of volume tune method shown in the disclosure one exemplary embodiment.
Fig. 5 is the schematic diagram of power key position in a kind of volume adjustment device shown in the disclosure one exemplary embodiment.
Fig. 6 is the module frame chart of a kind of volume adjustment device shown in the disclosure one exemplary embodiment.
Fig. 7 is the module frame chart of relating module in a kind of volume adjustment device shown in the disclosure one exemplary embodiment.
Fig. 8 is the structural representation according to a kind of volume adjustment device shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they are only with the most appended The example of the apparatus and method that some aspects that described in detail in claims, the disclosure are consistent.
The term used in the disclosure is only merely for describing the purpose of specific embodiment, and is not intended to be limiting the disclosure. " a kind of ", " described " and " being somebody's turn to do " of singulative used in disclosure and the accompanying claims book is also intended to include majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps Any or all containing one or more projects of listing being associated may combination.
Although should be appreciated that in the disclosure possible employing term first, second, third, etc. to describe various information, but this A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.Such as, without departing from In the case of disclosure scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ... Time " or " in response to determining ".
Refer to Fig. 1 to Fig. 2, provide a kind of volume adjusting method in one exemplary embodiment, it is adaptable to use power supply The electronic equipment of key regulation volume, comprises the following steps:
Step S100: when the power key being in the first predeterminated position occurs to slide, detect described power key and slide into the Distance changing value between two predeterminated positions and described first predeterminated position.
Power key and the volume adjusting bond of electronic equipment will close design, make power key realize volume adjusting function.Example As realized the volume adjusting of electronic equipment by slip power key, during slip power key, the volume of electronic equipment increases to the left, to During right slip power key, the volume of electronic equipment reduces.The lower section of power key or the side of glide direction at described electronic equipment Position arranges a resistance it can be understood as described power key and described resistance form a slide rheostat, along with described power key In the change of described ohmically sliding distance, the resistance value of described resistance changes therewith.Described sliding distance and described resistance Resistance value linear with regulate electronic equipment volume value.
The operating system of electronic equipment monitors whether the power key of described electronic equipment slides, when operating system is monitored During to the generation slip of described power key, triggering system operation disruption, the original position recording the generation slip of described power key is electric First predeterminated position of resistance and the resistance value of this first predeterminated position.Stop sliding when operating system listens to described power key, Record second predeterminated position that stop position is resistance of described power key.According to described first predeterminated position and described second pre- If power key sliding distance changing value is designated as L described in position calculation.
Step S200: calculate described second predeterminated position according to the first corresponding relation of described distance changing value with resistance value Corresponding resistance value.The most described first corresponding relation can be understood as described power key sliding distance changing value with The linear relationship of resistance.The changing value of resistance can be calculated under conditions of learning described power key sliding distance changing value L.Institute The changing value stating resistance combines the resistance value of the first predeterminated position, and the two is added the resistance that can calculate described second predeterminated position Value.
Step S300: calculate according to the resistance value of described second predeterminated position should export with the second corresponding relation of volume value Volume value, the volume value of the current output of regulation is to the volume value that should export.After the resistance value determining the second predeterminated position, Resistance value according to described second predeterminated position and the second corresponding relation of volume value, can calculate described second predeterminated position Resistance value corresponding answer output volume value.Operating system according to described in answer the volume value of the current output of output volume value regulation. Described second corresponding relation can be regarded as the corresponding multiple volume values in multiple intervals of resistance value.
Such as first predeterminated position is designated as zero (initial position), and the resistance value of the first predeterminated position is R1.Slip power key Sliding into the second predeterminated position on resistance, described second predeterminated position distance the first predeterminated position is L.According to described power key The distance changing value L slided and the first corresponding relation of described resistance value, show that the second predeterminated position presets position relative to first The changing value of resistance value R1 put: R '=kL, k are design factor.The then resistance value of the second predeterminated position: R2=R1+R '.Root again The volume value that should export: Y=K* is calculated with second corresponding relation of volume value Y according to resistance value R2 of described second predeterminated position R2.If the volume value of current output be Y ' more than answering output volume value Y, then operating system reduces current output volume value Y '. If the volume value Y ' of current output is less than answering output volume value Y, then operating system increases current volume output volume value Y '.As The volume value of the current output of fruit is that Y ' is equal to answer output volume value Y, then operating system maintains current output volume value Y '.Wherein adjust Joint to current output volume value Y ' can call electronic equipment volume adjusting module regulation current output volume value Y '.
The disclosure uses sliding of power key to change the resistance value of resistance, adjusts according to the corresponding relation of resistance value with volume value Joint volume, is different from button regulation volume mode, the volume adjusting button of desirable electric eliminating subset in correlation technique, makes electronics set Standby outward appearance has more symmetry, adds the aesthetic appearance of electronic equipment.
In the above-described embodiments, described volume adjusting method also includes step;
Length according to resistance and resistance value relation determine the distance changing value and described resistance value that described power key slides The first corresponding relation;Determine that described resistance value is corresponding with the second of volume value according to the relation of diaphone value between resistor tracks Relation.
Shown in Fig. 3, Fig. 4 and Fig. 5, according to resistance calculations formula R=ρ L/S, (R is that resistance, S are in one embodiment Sectional area, L be length, ρ be resistivity) pre-set distance changing value and the first couple of described resistance value that power key 2 slides Should relation.The distance changing value relation that such as resistance value is slided with power key is that (k is design factor to R=kL, and L is distance Changing value), resistance value R can be calculated at known described distance changing value L.Pre-set resistance value and the volume value of resistance 3 Second corresponding relation is it can be understood as arrange the different resistance values correspondence difference volume value of described resistance 3.It is right that resistance interval is set Answering volume value, if volume value has ten volume values, then arranging resistance 3 has the resistance value of described ten volume values of ten correspondences. The functional relationship of described correspondence such as volume value Y=KR, K are function design factor, and R is the resistance value of resistance 3.
As in figure 2 it is shown, the first corresponding relation according to described distance changing value with resistance value calculates in described step S200 The resistance value that described second predeterminated position is corresponding includes:
Step S210: the distance changing value slided according to described power key and the first corresponding relation of described resistance value, counts Calculate the increased resistance value that the distance changing value of described power key slip is corresponding;Determine described second pre-based on described increased resistance value If the second resistance value of position.
Step S220: obtain the first resistance value when described power key is in described first predeterminated position;According to described electricity Resistance changing value is in the first resistance value during the first predeterminated position with described power key, determines the second of described second predeterminated position Resistance value.Calculate the changing value of described resistance 3 corresponding to distance changing value that described power key 2 slides, and obtain described power supply Key 2 is in the first resistance value during described first predeterminated position (power key position in Fig. 4);According to described resistance 3 changing value with Described power key 2 is in the first resistance value during the first predeterminated position, determine described second predeterminated position (in Fig. 4 to moving to left or The a certain position moved to right) the second resistance value.
Such as: the distance changing value that power key 2 slides with the first corresponding relation of described resistance value is: (R is electricity to R=kL Resistance, k is design factor, and L is distance changing value).According to described first corresponding relation and known parameters distance changing value L and meter Calculate coefficient k, changing value the R '=kL of resistance can be drawn.The of distance changing value and the described resistance value slided according to power key 2 One corresponding relation can be learnt and move the first resistance value to described first predeterminated position at power key 2 from initial position, is Know parameter.At the first resistance value, the increased resistance value of known described first predeterminated position, the first electricity of described first predeterminated position Resistance adds described increased resistance value can directly calculate the second resistance value of described second predeterminated position.
Further, as it is shown on figure 3, the resistance value according to described second predeterminated position and volume value described in step S300 The second corresponding relation calculate the volume value that should export, the volume value of the current output of regulation to the volume value that should export, including:
Step S310: according to the second corresponding relation of described resistance value Yu volume value, calculates corresponding described second and presets position The volume value that the second resistance value put should export;
Step S320: regulate current output volume value to the described volume value that should export.
Such as: according to resistance value and second corresponding relation of volume value of the described resistance 3 pre-seted, calculate corresponding described The volume value that second resistance value of the second predeterminated position should export, the volume adjusting module regulation calling electronic equipment 1 is current Output volume value is to the described volume value that should export.When calculating the second resistance value of described second predeterminated position, according in advance The resistance value of described resistance arranged and the second corresponding relation of volume value can calculate the volume value that should export.
Pre-set the resistance value of resistance 3 with the second corresponding relation of volume value it can be understood as arrange described resistance Different resistance values interval correspondence difference volume value, it is judged that the volume value that resistance interval belonging to resistance 3 is corresponding, by described correspondence Volume value as answering output volume value, and regulate volume to described in answer output volume value.Resistance interval diaphone amount is such as set Value, if volume value has 15 volume values, then arranging resistance has the resistance value of 15 described 15 volume values of correspondence.? In one embodiment, the functional relationship of described second correspondence: volume value Y=KR, K are function design factor, R is the resistance of resistance Value.If if current output volume the tenth volume value, the second resistance value of described second predeterminated position is between SECTOR-SEVEN, then Output volume value is answered to be also at subtonic value.If if current output volume value the tenth volume value is more than answering output volume Value, it is subtonic value that the volume adjusting module of electronic equipment 1 reduces current output volume.If answering output volume value is the tenth Three volume values, then current output volume value is less than answering output volume value, and the volume adjusting module of electronic equipment 1 increases current output Volume is subtonic value.
The disclosure first detects power key at ohmically sliding distance, calculates the electricity of resistance according to the distance changing value slided Resistance, the volume value that then should export further according to resistance value conversion, then according to the current output of volume value regulation that should export Volume value.It is different from the mode of button regulation volume, the volume adjusting button of desirable electric eliminating subset in correlation technique, makes electronics Equipment appearance has more symmetry, adds the aesthetic appearance of electronic equipment.
Referring to Fig. 6 to Fig. 7, the disclosure provides a kind of volume adjustment device, and power key can be used to regulate volume, described electricity Source key can move left and right regulation volume, and for performing the volume adjusting method shown in Fig. 1, shown device includes: detection module 51, relating module 52 and adjustment module 53.
When detection module 51 is configured as the power key generation slip being in the first predeterminated position, detect described power key Slide into the distance changing value between the second predeterminated position and described first predeterminated position.
Relating module 52 is configured to the first corresponding relation according to described distance changing value and resistance value and calculates described the The resistance value that two predeterminated positions are corresponding.
Adjustment module 53 is configured to the second corresponding relation of the resistance value according to described second predeterminated position and volume value The volume value that calculating should export, the volume value of the current output of regulation is to the volume value that should export.
In this embodiment, detection module 51 detects the distance that power key occurs to slide, and relating module 52 is according to described cunning Dynamic distance calculates the power key resistance value at the second predeterminated position, and adjustment module 53 is adjusted according to the resistance value of the second predeterminated position Joint volume output.
In one embodiment, described volume adjustment device also includes pre-seting module, described in pre-set module:
First pre-sets module, is configured to the length according to resistance and determines what described power key slided with resistance value relation Distance changing value and the first corresponding relation of described resistance value;
Second pre-sets module, be configured to according to the relation of diaphone value between resistor tracks determine described resistance value with Second corresponding relation of volume value.
Referring to Fig. 7, described relating module 52 includes:
First association submodule 521, is configured to the distance changing value that slides according to described power key and described resistance value The first corresponding relation, calculate increased resistance value corresponding to distance changing value that described power key slides;Become based on described resistance Change value determines the second resistance value of described second predeterminated position.
Described relating module also includes:
Second association submodule 522, is configured to obtain first when described power key is in described first predeterminated position Resistance value;It is in the first resistance value during the first predeterminated position according to described increased resistance value and described power key, determines described Second resistance value of the second predeterminated position.
Described adjustment module 53 includes:
Regulon module, is configured to the second corresponding relation according to described resistance value Yu volume value, calculates corresponding described The volume value that second resistance value of the second predeterminated position should export;Regulate current output volume value to the described volume that should export Value.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact The part executing example illustrates.Device embodiment described above is only schematically, wherein said as separating component The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can also It not physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality Need to select some or all of module therein to realize the purpose of disclosure scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, i.e. it is appreciated that and implements.
Accordingly, the disclosure provides a kind of electronic equipment, and described electronic equipment also includes:
Processor:
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Detect described power key and slide into the distance changing value of the second predeterminated position from the first predeterminated position;According to described away from The first corresponding relation from changing value with resistance value calculates the resistance value of described second predeterminated position;Position is preset according to described second The resistance value put calculates, with the second corresponding relation of volume value, the volume value that should export;
According to the described volume value that should export, regulate the volume adjusting of the volume value that should export described in correspondence.
Accordingly, the disclosure also provides for a kind of electronic equipment, and described electronic equipment includes:
Processor:
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Detect described power key when the power key being in the first predeterminated position occurs and slides and slide into the second predeterminated position Shi Suoshu the second predeterminated position and the distance changing value of described first predeterminated position;
The first corresponding relation according to described distance changing value with resistance value calculates the resistance value of described second predeterminated position;
Resistance value according to described second predeterminated position calculates, with the second corresponding relation of volume value, the volume value that should export, The volume value of the current output of regulation is to the volume value that should export.
Fig. 8 is the block diagram according to a kind of volume adjustment device 1000 shown in an exemplary embodiment.Such as, volume adjusting Device 1000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Armarium, body-building equipment, personal digital assistant etc..
With reference to Fig. 8, device 1000 can include following one or more assembly: processes assembly 1002, memorizer 1004, electricity Source component 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of input/output (I/O), sensor cluster 1014, and communications component 1016.
Process assembly 1002 and generally control the integrated operation of device 1000, such as with display, call, data communication, The operation that camera operation and record operation are associated.Process assembly 1002 and can include that one or more processor 1020 performs Instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 1002 can include one or more mould Block, it is simple to process between assembly 1002 and other assemblies is mutual.Such as, process assembly 1002 and can include multi-media module, With facilitate multimedia groupware 1008 and process between assembly 1002 mutual.
Memorizer 1004 is configured to store various types of data to support the operation at device 1000.These data Example include on device 1000 operation any application program or the instruction of method, contact data, telephone book data, Message, picture, video etc..Memorizer 1004 can by any kind of volatibility or non-volatile memory device or they Combination realizes, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
The various assemblies that power supply module 1006 is device 1000 provide electric power.Power supply module 1006 can include power management System, one or more power supplys, and other generate, manage and distribute, with for device 1000, the assembly that electric power is associated.
The screen of one output interface of offer that multimedia groupware 1008 is included 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 that one or more touch passes Sensor is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense touch or slide dynamic The border made, but also detect the persistent period relevant to described touch or slide and pressure.In certain embodiments, many Media component 1008 includes a front-facing camera and/or post-positioned pick-up head.When device 1000 is in operator scheme, such as shooting mould When formula or video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each preposition shooting Head and post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 1010 is configured to output and/or input audio signal.Such as, audio-frequency assembly 1010 includes a wheat Gram wind (MIC), when device 1000 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike quilt It is configured to receive external audio signal.The audio signal received can be further stored at memorizer 1004 or via communication Assembly 1016 sends.In certain embodiments, audio-frequency assembly 1010 also includes a speaker, is used for exporting audio signal.
I/O interface 1012 provides interface, above-mentioned peripheral interface module for processing between assembly 1002 and peripheral interface module Can be keyboard, put striking 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 sensor, for providing the state of various aspects to comment for device 1000 Estimate.Such as, what sensor cluster 1014 can detect device 1000 opens/closed mode, the relative localization of assembly, such as institute Stating display and keypad that assembly is device 1000, sensor cluster 1014 can also detect device 1000 or device 1,000 1 The position change of individual assembly, the presence or absence that user contacts with device 1000, device 1000 orientation or acceleration/deceleration and dress Put the variations in temperature of 1000.Sensor cluster 1014 can include proximity transducer, is configured to do not having any physics The existence of object near detection during contact.Sensor cluster 1014 can also include optical sensor, as CMOS or ccd image sense Device, for using in imaging applications.In certain embodiments, this sensor cluster 1014 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 1016 is configured to facilitate the communication of wired or wireless mode between device 1000 and other equipment.Dress Put 1000 and can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Exemplary at one In embodiment, broadcast singal or broadcast that communications component 1016 receives from external broadcasting management system via broadcast channel are relevant Information.In one exemplary embodiment, described communications component 1016 also includes near-field communication (NFC) module, to promote short distance Communication.Such as, can be based on 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 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 realize, be used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided As included the memorizer 1004 of instruction, above-mentioned instruction can have been performed said method by the processor 1020 of device 1000.Example If, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Dish and optical data storage devices etc..
The foregoing is only the preferred embodiment of the disclosure, not in order to limit the disclosure, all essences in the disclosure Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of disclosure protection.

Claims (11)

1. a volume adjusting method, it is characterised in that comprise the following steps:
When the power key being in the first predeterminated position occurs to slide, detect described power key and slide into the second predeterminated position and institute State the distance changing value between the first predeterminated position;
Calculate, with the first corresponding relation of resistance value, the resistance value that described second predeterminated position is corresponding according to described distance changing value;
Resistance value according to described second predeterminated position calculates the volume value that should export, regulation with the second corresponding relation of volume value The volume value of current output is to the volume value that should export.
Volume adjusting method the most according to claim 1, it is characterised in that described volume adjusting method also includes step;
Length according to resistance and resistance value relation determine the of distance changing value that described power key slides and described resistance value One corresponding relation;
The second corresponding relation of described resistance value and volume value is determined according to the relation of diaphone value between resistor tracks.
Volume adjusting method the most according to claim 2, it is characterised in that described according to described distance changing value and resistance The resistance value that first corresponding relation of value calculates described second predeterminated position corresponding includes:
The distance changing value slided according to described power key and the first corresponding relation of described resistance value, calculate described power key sliding The increased resistance value that dynamic distance changing value is corresponding;
The second resistance value of described second predeterminated position is determined based on described increased resistance value.
Volume adjusting method the most according to claim 3, it is characterised in that described the first changing value based on described resistance Determine the second resistance value of described second predeterminated position, including:
Obtain the first resistance value when described power key is in described first predeterminated position;
It is in the first resistance value during the first predeterminated position according to described increased resistance value and described power key, determines described second Second resistance value of predeterminated position.
Volume adjusting method the most according to claim 4, it is characterised in that the described electricity according to described second predeterminated position Resistance calculates, with the second corresponding relation of volume value, the volume value that should export, and the volume value of the current output of regulation is to the sound that should export Value, including:
According to the second corresponding relation of described resistance value Yu volume value, calculate the second resistance value of corresponding described second predeterminated position The volume value that should export;
Regulate current output volume value to the described volume value that should export.
6. a volume adjustment device, it is characterised in that including:
Detection module, when being configured as the power key generation slip being in the first predeterminated position, detects described power key and slides Distance changing value between the second predeterminated position and described first predeterminated position;
Relating module, is configured to calculate described second according to described distance changing value and the first corresponding relation of resistance value default The resistance value that position is corresponding;
Adjustment module, the second corresponding relation calculating being configured to the resistance value according to described second predeterminated position and volume value should The volume value of output, the volume value of the current output of regulation is to the volume value that should export.
Volume adjustment device the most according to claim 6, it is characterised in that described volume adjustment device also includes pre-seting Module, described in pre-set module and include:
First pre-sets module, is configured to the length according to resistance and determines, with resistance value relation, the distance that described power key slides Changing value and the first corresponding relation of described resistance value;
Second pre-sets module, is configured to determine described resistance value and volume according to the relation of diaphone value between resistor tracks Second corresponding relation of value.
Volume adjustment device the most according to claim 7, it is characterised in that described relating module includes:
First association submodule, is configured to the first couple of distance changing value and the described resistance value slided according to described power key Should be related to, calculate the increased resistance value that the distance changing value of described power key slip is corresponding;Determine based on described increased resistance value Second resistance value of described second predeterminated position.
Volume adjustment device the most according to claim 8, it is characterised in that described relating module also includes:
Second association submodule, is configured to obtain the first resistance value when described power key is in described first predeterminated position; It is in the first resistance value during the first predeterminated position according to described increased resistance value and described power key, determines that described second presets Second resistance value of position.
Volume adjustment device the most according to claim 9, it is characterised in that described adjustment module includes:
Regulon module, is configured to the second corresponding relation according to described resistance value Yu volume value, calculates corresponding described second The volume value that second resistance value of predeterminated position should export;
Regulate current output volume value to the described volume value that should export.
11. 1 kinds of electronic equipments, it is characterised in that include the volume adjustment device described in any one of claim 6 to 10;Described Electronic equipment also includes:
Processor:
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Detect described power key and slide into the distance changing value of the second predeterminated position from the first predeterminated position;Become according to described distance First corresponding relation of change value and resistance value calculates the resistance value of described second predeterminated position;According to described second predeterminated position Resistance value calculates, with the second corresponding relation of volume value, the volume value that should export;
According to the described volume value that should export, regulate the volume adjusting of the volume value that should export described in correspondence.
CN201610972294.3A 2016-10-31 2016-10-31 A kind of volume adjusting method, device and electronic equipment Pending CN106254610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610972294.3A CN106254610A (en) 2016-10-31 2016-10-31 A kind of volume adjusting method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610972294.3A CN106254610A (en) 2016-10-31 2016-10-31 A kind of volume adjusting method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN106254610A true CN106254610A (en) 2016-12-21

Family

ID=57600675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610972294.3A Pending CN106254610A (en) 2016-10-31 2016-10-31 A kind of volume adjusting method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106254610A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019033435A1 (en) * 2017-08-18 2019-02-21 广东欧珀移动通信有限公司 Sound volume adjustment method and apparatus, mobile terminal, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090153470A1 (en) * 2007-12-18 2009-06-18 Ming-Yu Chen Electronic device with module integrating display unit and input unit
CN103024127A (en) * 2012-12-31 2013-04-03 上海华勤通讯技术有限公司 Volume adjusting device
CN103885600A (en) * 2012-12-24 2014-06-25 深圳富泰宏精密工业有限公司 Portable electronic device integrating power button and volume button and working method of electronic device.
CN204180142U (en) * 2014-10-28 2015-02-25 闻泰通讯股份有限公司 A kind of portable mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090153470A1 (en) * 2007-12-18 2009-06-18 Ming-Yu Chen Electronic device with module integrating display unit and input unit
CN103885600A (en) * 2012-12-24 2014-06-25 深圳富泰宏精密工业有限公司 Portable electronic device integrating power button and volume button and working method of electronic device.
CN103024127A (en) * 2012-12-31 2013-04-03 上海华勤通讯技术有限公司 Volume adjusting device
CN204180142U (en) * 2014-10-28 2015-02-25 闻泰通讯股份有限公司 A kind of portable mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019033435A1 (en) * 2017-08-18 2019-02-21 广东欧珀移动通信有限公司 Sound volume adjustment method and apparatus, mobile terminal, and storage medium

Similar Documents

Publication Publication Date Title
CN104965535A (en) Temperature adjusting device control method and apparatus
CN104683691B (en) Image pickup method, device and equipment
CN105405427A (en) Facility brightness adjustment method and device
CN104281432A (en) Method and device for regulating sound effect
CN106331338A (en) Volume adjusting method and device
CN104503671A (en) Driving control method and device of electric self-balancing vehicle
CN105288941A (en) Treadmill speed regulating method and device
CN106205628A (en) Acoustical signal optimization method and device
CN107493500A (en) Multimedia resource player method and device
CN106303806B (en) The volume balance control method and device of sound system
CN107360326A (en) terminal volume adjusting processing method and terminal
CN106878558A (en) Dropproof based reminding method and device
CN107888984A (en) Short video broadcasting method and device
CN106101786A (en) The method and apparatus controlling target device
CN106598429A (en) Method and device for adjusting window of mobile terminal
CN104378715A (en) Device and method for lowering earphone POP sound
CN108042230A (en) Toothbrush control method, device and readable storage medium storing program for executing
CN105512615A (en) Picture processing method and apparatus
CN105472157A (en) Method and device for monitoring terminal motion state
CN107102801A (en) Terminal screen spinning solution and device
CN104976736A (en) Working method and device of equipment and controlling method and device of equipment
CN106792307A (en) Wireless headset and earphone adjusting method
CN106775228A (en) The operating method and device of icon
CN105979465A (en) Method and device for determining maximum output power value of earphone equipment
CN106122566A (en) Eliminate the method and device of electromagnetic valve noise

Legal Events

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