A kind of volume based on mobile terminal sets processing method and mobile terminal
Technical field
The present invention relates to field of mobile terminals, more particularly to a kind of volume based on mobile terminal, processing method is set
And mobile terminal.
Background technology
Sound control is extremely important for mobile terminal, and sound control not only influences the most basic call of mobile terminal
When volume, while also to amusement functions such as the music of increasing mobile terminal at present, viewing video, game
It is closely bound up.Although current mobile terminal passes through years development, various application programs, operating system, user interface etc. has length
Foot is progressive, advanced more too many than functional mobile phone epoch before the more than ten years, but for the sound control of mobile terminal with
What functional mobile phone before more than ten years change without.
Current sound control be still it is strong or touch-screen carries out upper and lower slidable adjustment to volume control strip by volume side,
This such as goes out one often with the functional mobile phone before the more than ten years.Although this method by control strip regulation sound size is very directly perceived,
Mobile terminal screen size is limited after all, control strip length always have very, be usually no more than ten centimetres, and sound is typically all
Hundreds of grades of sizes are adjustable(Poor sound size control chip is all that sound size is controlled with the register of a byte, and
One byte is 8, it is possible to achieve 255 grades of the big minor adjustment of sound;The big minor adjustment of preferable sound size control chip sound
Gear number it is more), sound size is adjusted with so short control strip can only coarse adjustment;Therefore, it is mobile whole in the prior art
The sound size degree of regulation at end is relatively low, mutually deviates from the growing pursuit for mobile terminal audio.
Therefore, prior art has yet to be improved and developed.
The content of the invention
The technical problem to be solved in the present invention is that the drawbacks described above for prior art is whole based on movement there is provided one kind
The volume at end sets processing method and mobile terminal.There is provided a kind of method to set up of mobile terminal loudness, it is intended to which user can
By that can be realized for the trickleer regulation of sound size by this method in a control strip, meet it is growing for
The pursuit of mobile terminal audio, provides the user conveniently, provides users with the convenient.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of volume based on mobile terminal sets processing method, wherein, including:
A, sets a volume control strip on screen in advance, and the slip on by the volume control strip is mobile whole to adjust
During the volume at end, the speed of the control focus movement on detection control strip;
B, when the speed of the control focus movement on control strip is higher than First Speed thresholding set in advance, for mobile terminal
Volume use the first regulative mode;
C, when the speed of the control focus movement on control strip is less than second speed thresholding set in advance, for mobile terminal
Volume use the second regulative mode;
D, then the volume of current mobile terminal is coarse adjustment result and fine tuning result sum.
The volume based on mobile terminal sets processing method, wherein, also include after the step D:
E, when on control strip control focus movement speed be less than or equal to First Speed thresholding set in advance, and be higher than or
During equal to second speed thresholding set in advance, the volume for mobile terminal does not make adjustments.
The volume based on mobile terminal sets processing method, wherein, the volume control strip in the step A is touch
Rectangular area on screen, the rectangular area by the upper left corner point(x1,y1)With the point in the lower right corner(x2,y2)It is determined that, then work as touch
Point coordinates(x,y)Meet x1≤x≤x2 and y1≤y≤y2 then thinks touch point(x,y)On volume control strip.
The volume based on mobile terminal sets processing method, wherein, there is a control focus on the volume control strip,
Sound is carried out to mobile terminal according to position of the control focus on volume control strip and its translational speed when volume adjusting
Measure the setting of size.
The volume based on mobile terminal sets processing method, wherein, it is described when user passes through institute in the step A
When stating the volume slided to adjust mobile terminal on volume control strip, the speed of the control focus movement on detection control strip
Degree is specifically included:
R1, the position coordinates of the control focus on control strip is obtained every set time T;
R2, with the distance between the coordinate of the control focus of this acquisition and the coordinate of control focus of last time acquisition divided by fixation
Time T obtains the translational speed of the control focus on control strip.
The volume based on mobile terminal sets processing method, wherein, the set time T in the step R1 and R2 is
1 second.
The volume based on mobile terminal sets processing method, wherein, the step B is specifically included:
The translational speed of the control focus on control strip obtained in F1, comparison step R2 and First Speed thresholding set in advance
Size, if on control strip control focus movement speed be higher than First Speed thresholding set in advance, into step F2;
F2, now to the volume progress coarse adjustment of mobile terminal, obtains the abscissa of the current position on control strip of control focus
X3, so that the volume for obtaining the coarse adjustment of current setting is K1=KMAX*(x3-x1)/(x2-x1), wherein KMAX is maximum sound
Value, x3-x1 for control focus it is current from control strip starting point with a distance from, x2-x1 is the total length of control strip.
The volume based on mobile terminal sets processing method, wherein, the step C includes:
The translational speed of the control focus on control strip obtained in G1, comparison step R2 and second speed thresholding set in advance
Size, if on control strip control focus movement speed be less than second speed thresholding set in advance, into step G2;
G2, now to the volume progress fine tuning of mobile terminal, obtains the abscissa of the current position on control strip of control focus
X3, so that the volume for obtaining the fine tuning of current setting is K2=KSTP*(x3-x1)/(x2-x1), wherein KSTP is fine tuning sound
Volume adjustable extent during amount, such as KSTP is KMAX*10%, x3-x1 for control focus it is current from control strip starting point with a distance from,
X2-x1 is the total length of control strip.
The volume based on mobile terminal sets processing method, wherein, the step D also includes:Current mobile terminal
Volume be coarse adjustment result and fine tuning result sum, i.e. current volume size K3 are K1+K2.
A kind of volume based on mobile terminal sets processing system, wherein, including:
Focus velocity measuring module, for setting a volume control strip on screen in advance, when user passes through the volume control
On bar processed when sliding volume to adjust mobile terminal, the speed that the control focus on detection control strip is moved;
Coarse adjustment computing module, for being higher than First Speed thresholding set in advance when the speed of the control focus movement on control strip
When, the volume for mobile terminal uses the first regulative mode;
Fine tuning computing module, for being less than second speed thresholding set in advance when the speed of the control focus movement on control strip
When, the volume for mobile terminal uses the second regulative mode;
Volume computing module, the volume for then current mobile terminal is coarse adjustment result and fine tuning result sum.
Volume provided by the present invention based on mobile terminal sets processing method and mobile terminal, and methods described passes through pre-
One volume control strip is first set on screen, when user by the slip on the volume control strip adjusts mobile terminal
During volume, the speed of the control focus movement on detection control strip;When the speed of the control focus movement on control strip is high
When First Speed thresholding set in advance, the volume for mobile terminal uses coarse adjustment mode(First regulative mode);Work as control
When the speed of control focus movement on bar processed is less than second speed thresholding set in advance, the volume for mobile terminal is used
Fine tuning mode(Second regulative mode);Then the volume of current mobile terminal is coarse adjustment result and fine tuning result sum.Use
Family can meet growing by that can be realized for the trickleer regulation of sound size by this method in a control strip
The pursuit for mobile terminal audio, provide users with the convenient.
Brief description of the drawings
Fig. 1 is the flow chart for the preferred embodiment that volume of the present invention based on mobile terminal sets processing method.
Fig. 2 is the volume control strip explanation for the preferred embodiment that volume of the present invention based on mobile terminal sets processing method
Schematic diagram 1.
Fig. 3 is the volume control strip explanation for the preferred embodiment that volume of the present invention based on mobile terminal sets processing method
Schematic diagram 2.
Fig. 4 is the volume control strip explanation for the preferred embodiment that volume of the present invention based on mobile terminal sets processing method
Schematic diagram 3.
Fig. 5 is the functional schematic block diagram for the preferred embodiment that volume of the present invention based on mobile terminal sets processing system.
Embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and without
It is of the invention in limiting.
Fig. 1 is referred to, Fig. 1 is the flow for the preferred embodiment that volume of the present invention based on mobile terminal sets processing method
Figure, as shown in figure 1, the volume based on mobile terminal sets processing method described in the embodiment of the present invention, comprises the following steps:
S100, set a volume control strip on screen in advance, and the slip on by the volume control strip adjusts shifting
During the volume of dynamic terminal, the speed of the control focus movement on detection control strip.
Specifically, it is illustrated in figure 2 volume control strip and illustrates schematic diagram 1, the volume control strip is the square on touch-screen
Shape region, the rectangular area by the upper left corner point(x1,y1)With the point in the lower right corner(x2,y2)It is determined that, then when touch point coordinates(x,
y)Meet x1≤x≤x2 and y1≤y≤y2 then thinks touch point(x,y)On volume control strip.
Wherein, there is a control focus on the volume control strip, the method to set up of mobile terminal loudness of the present invention is just
It is to be set according to position of the control focus on volume control strip and its translational speed to carry out volume to mobile terminal
Put.
For " when user is by the volume control strip when sliding volume to adjust mobile terminal, detection
The speed of control focus movement on control strip " is specifically included:
R1, the position coordinates of the control focus on control strip is obtained every set time T;Wherein, set time T, it is preferred that choosing
Take 1 second.
R2, with the distance between coordinate of control focus of coordinate and last time acquisition of the control focus of this acquisition divided by
Set time T(Such as 1 second)Obtain the translational speed of the control focus on control strip;Such as, this control focus obtained
Abscissa is xThis, what last time obtained controls the abscissa of focus for xLast time, then the translational speed for controlling focus is | xThis-xLast time|/
T, | xThis-xLast time| represent xThis-xLast timeAbsolute value.
S200, when the speed of the control focus movement on control strip is higher than First Speed thresholding set in advance, for
The volume of mobile terminal uses coarse adjustment mode;In the embodiment of the present invention, first regulative mode is coarse adjustment mode(Coarse adjustment),
Second regulative mode is fine tuning mode(Fine tuning).
Specifically, step S200, including:
The translational speed of the control focus on control strip obtained in F1, comparison step R2 and First Speed thresholding set in advance
Size, if on control strip control focus movement speed be higher than First Speed thresholding set in advance, into step F2;
F2, now to the volume progress coarse adjustment of mobile terminal, obtains the abscissa of the current position on control strip of control focus
X3, so that the volume for obtaining the coarse adjustment of current setting is K1=KMAX*(x3-x1)/(x2-x1), as shown in figure 3, Fig. 3 institutes
It is shown as volume control strip and illustrates schematic diagram 2, wherein KMAX is max volume value, and x3-x1 rises for control focus is current from control strip
The distance of point, x2-x1 is the total length of control strip.
S300, when the speed of the control focus movement on control strip is less than second speed thresholding set in advance, for
The volume of mobile terminal uses fine tuning mode.
Specifically, step S300 includes:
The translational speed of the control focus on control strip obtained in G1, comparison step R2 and second speed thresholding set in advance
Size, if on control strip control focus movement speed be less than second speed thresholding set in advance, into step G2.
G2, now to the volume progress fine tuning of mobile terminal, obtains the horizontal stroke of the current position on control strip of control focus
Coordinate x3, so that the volume for obtaining the fine tuning of current setting is K2=KSTP*(x3-x1)/(x2-x1)As shown in figure 3, Fig. 3
It show volume control strip and illustrates schematic diagram 3, volume adjustable extent when wherein KSTP is fine tuning volume, such as KSTP is
KMAX*10%, x3-x1 for control focus it is current from control strip starting point with a distance from, x2-x1 is the total length of control strip.
S400, then the volume of current mobile terminal is coarse adjustment result and fine tuning result sum.That is current mobile terminal
Volume be coarse adjustment result and fine tuning result sum, that is, current volume size K3 is K1+K2.
In addition, also including after the step S400:
When the speed of the control focus movement on control strip is less than or equal to First Speed thresholding set in advance, and it is higher than or waits
When second speed thresholding set in advance, the volume for mobile terminal does not make adjustments.
Therefore, a kind of volume method to set up based on mobile terminal that the present invention is provided, methods described passes through advance
One volume control strip is set on screen, when user by the slip on the volume control strip adjusts the sound of mobile terminal
When measuring size, the speed of the control focus movement on detection control strip;When the speed of the control focus movement on control strip is higher than
During First Speed thresholding set in advance, the volume for mobile terminal uses coarse adjustment mode;When the control focus on control strip
When mobile speed is less than second speed thresholding set in advance, the volume for mobile terminal uses fine tuning mode;It is then current
The volume of mobile terminal is coarse adjustment result and fine tuning result sum.Allow users to by passing through the party in a control strip
Method can be realized for the trickleer regulation of sound size, meet the growing pursuit for mobile terminal audio, for
Family provides convenient, so as to improve Consumer's Experience.
Based on above method embodiment, processing system is set present invention also offers a kind of volume based on mobile terminal,
As shown in figure 5, the system includes:
Focus velocity measuring module 210, for setting a volume control strip on screen in advance, when user passes through the volume
On control strip when sliding volume to adjust mobile terminal, the speed that the control focus on detection control strip is moved;Tool
Body is as described above.
Coarse adjustment computing module 220, for being higher than set in advance first when the speed of the control focus movement on control strip
During speed threshold, the volume for mobile terminal uses coarse adjustment mode;As detailed above.
Fine tuning computing module 230, for being less than set in advance second when the speed of the control focus movement on control strip
During speed threshold, the volume for mobile terminal uses fine tuning mode;As detailed above.
Volume computing module 240, the volume for then current mobile terminal is coarse adjustment result and fine tuning result sum;
As detailed above.
In summary, the volume provided by the present invention based on mobile terminal sets processing method and mobile terminal, described
Method on screen by setting a volume control strip in advance, when user is adjusted by the slip on the volume control strip
During the volume of mobile terminal, the speed of the control focus movement on detection control strip;When the control focus on control strip is moved
When dynamic speed is higher than First Speed thresholding set in advance, the volume for mobile terminal uses coarse adjustment mode;Work as control strip
On control focus movement speed be less than second speed thresholding set in advance when, the volume for mobile terminal uses fine tuning
Mode;Then the volume of current mobile terminal is coarse adjustment result and fine tuning result sum.Allow users to by a control
Bar processed can be realized for the trickleer regulation of sound size by this method, meet growing for mobile terminal audio
Pursuit, provide users with the convenient.
Certainly, one of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method,
Computer program is can be by instruct related hardware(Such as processor, controller etc.)To complete, described program can be stored
In the storage medium of an embodied on computer readable, the program may include such as the flow of above-mentioned each method embodiment upon execution.Its
Described in storage medium can be for memory, magnetic disc, CD etc..
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect scope.