A kind of volume setting processing method and mobile terminal based on mobile terminal
Technical field
The present invention relates to field of mobile terminals more particularly to a kind of volume based on mobile terminal, and processing method is arranged
And mobile terminal.
Background technique
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. have length
Foot progress, it is more advanced than functional mobile phone epoch before the more than ten years too many, but for the sound control of mobile terminal with
What functional mobile phone before more than ten years change without.
Current sound control is still strong by volume side or touch screen carries out upper and lower slidable adjustment to volume control item,
This is with the functional mobile phone before the more than ten years as gone out one often.Although this method for adjusting sound size by control strip is very intuitive,
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
Several hundred grades it is adjustable (poor sound size control chip be all sound size is controlled with the register of a byte, and
255 grades of the big minor adjustment of sound may be implemented in one byte i.e. 8;Preferable sound size controls the big minor adjustment of chip voice
Gear number it is more), sound size is adjusted with so short control strip can only coarse adjustment;Therefore, mobile whole in the prior art
The sound size degree of regulation at end is lower, is away from each other with the growing pursuit for mobile terminal audio.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is that in view of the above drawbacks of the prior art, providing a kind of based on mobile whole
The volume setting processing method and mobile terminal at end.Provide a kind of setting method of mobile terminal loudness, it is intended to which user can
By the way that the adjusting subtleer for sound size may be implemented by this method in a control strip, meet it is growing for
The pursuit of mobile terminal audio is provided conveniently for user, is provided users with the convenient.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of volume setting processing method based on mobile terminal, wherein include:
A volume control item is arranged, when adjusting shifting by the sliding on the volume control item in A on the screen in advance
When the volume of dynamic terminal, the speed of the control focus movement on control strip is detected;
B, when the mobile speed of the control focus on control strip is higher than preset First Speed thresholding, for movement
The volume of terminal uses the first regulative mode;
C, when the mobile speed of the control focus on control strip is lower than preset second speed thresholding, for movement
The volume of terminal uses the second regulative mode;
D, then the volume of current mobile terminal is the sum of coarse adjustment result and fine tuning result.
Processing method is arranged in the volume based on mobile terminal, wherein after the step D further include:
E, when the mobile speed of the control focus on control strip is less than or equal to preset First Speed thresholding, and height
When preset second speed thresholding, the volume of mobile terminal is not made adjustments.
Processing method is arranged in the volume based on mobile terminal, wherein the volume control item in the step A is to touch
Rectangular area on screen, which is determined by the point (x1, y1) in the upper left corner and the point (x2, y2) in the lower right corner, then works as touch
Point coordinate (x, y) meets x1≤x≤x2 and y1≤y≤y2 then thinks that touch point (x, y) is located on volume control item.
Processing method is arranged in the volume based on mobile terminal, wherein there is a control focus on the volume control item,
Position and its movement speed when volume adjustment according to the control focus on volume control item is come to mobile terminal progress sound
Measure the setting of size.
Processing method is arranged in the volume based on mobile terminal, wherein described when user passes through institute in the step A
When stating volume of the sliding on volume control item to adjust mobile terminal, the speed of the control focus movement on control strip is detected
Degree specifically includes:
R1 obtains the position coordinates of the control focus on control strip every set time T;
R2, with the coordinate of this control focus obtained and the distance between coordinate of control focus of last time acquisition divided by
Set time T obtains the movement speed of the control focus on control strip.
Processing method is arranged in the volume based on mobile terminal, wherein the set time T in the step R1 and R2 is
1 second.
Processing method is arranged in the volume based on mobile terminal, wherein the step B is specifically included:
The movement speed of control focus on control strip obtained in F1, comparison step R2 and preset First Speed
The size of thresholding, if the speed of the control focus movement on control strip is higher than preset First Speed thresholding, into step
Rapid F2;
F2 carries out coarse adjustment to the volume of mobile terminal at this time, obtains the cross of the current position on control strip of control focus
Coordinate x3, so that the volume for obtaining the coarse adjustment of current setting is K1=KMAX*(x3-x1)/(x2-x1), wherein KMAX is most
Big volume value, x3-x1 are to control focus currently with a distance from control strip starting point, and x2-x1 is the total length of control strip.
Processing method is arranged in the volume based on mobile terminal, wherein the step C includes:
The movement speed and preset second speed of control focus on control strip obtained in G1, comparison step R2
The size of thresholding, if the speed of the control focus movement on control strip is lower than preset second speed thresholding, into step
Rapid G2;
G2 carries out fine tuning to the volume of mobile terminal at this time, obtains the cross 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), wherein KSTP is thin
Volume adjustable extent when tuning amount, for example KSTP is KMAX*10%, x3-x1 be control focus currently from control strip starting point away from
From x2-x1 is the total length of control strip.
Processing method is arranged in the volume based on mobile terminal, wherein the step D further include: current mobile terminal
Volume be the sum of coarse adjustment result and fine tuning result, i.e. current volume size K3 be K1+K2.
A kind of volume setting processing system based on mobile terminal, wherein include:
Focus velocity measuring module, for a volume control item to be arranged on the screen in advance, when user passes through the sound
When measuring volume of the sliding on control strip to adjust mobile terminal, the speed of the control focus movement on control strip is detected;
Coarse adjustment computing module, for being higher than preset First Speed when the mobile speed of the control focus on control strip
When thresholding, the first regulative mode is used for the volume of mobile terminal;
Fine tuning computing module, for being lower than preset second speed when the mobile speed of the control focus on control strip
When thresholding, the second regulative mode is used for the volume of mobile terminal;
Volume computing module, the volume for then current mobile terminal are the sum of coarse adjustment result and fine tuning result.
Volume setting processing method and mobile terminal, the method provided by the present invention based on mobile terminal passes through pre-
One volume control item is first set on the screen, when user adjusts mobile terminal by the sliding on the volume control item
When volume, the speed of the control focus movement on control strip is detected;When the mobile speed of the control focus on control strip is high
When preset First Speed thresholding, coarse adjustment mode (the first regulative mode) is used for the volume of mobile terminal;Work as control
When the speed of control focus movement on item processed is lower than preset second speed thresholding, the volume of mobile terminal is used
Fine tuning mode (the second regulative mode);Then the volume of current mobile terminal is the sum of coarse adjustment result and fine tuning result.It uses
Family can be met growing by the way that the adjusting subtleer for sound size may be implemented by this method in a control strip
The pursuit for mobile terminal audio, provide users with the convenient.
Detailed description of the invention
Fig. 1 is that the present invention is based on the flow charts of the preferred embodiment of the volume of mobile terminal setting processing method.
Fig. 2 is that the present invention is based on the volume control item explanations of the preferred embodiment of the volume of mobile terminal setting processing method
Schematic diagram 1.
Fig. 3 is that the present invention is based on the volume control item explanations of the preferred embodiment of the volume of mobile terminal setting processing method
Schematic diagram 2.
Fig. 4 is that the present invention is based on the volume control item explanations of the preferred embodiment of the volume of mobile terminal setting processing method
Schematic diagram 3.
Fig. 5 is that the present invention is based on the functional schematic block diagrams of the preferred embodiment of the volume of mobile terminal setting processing system.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, right as follows in conjunction with drawings and embodiments
The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and do not have to
It is of the invention in limiting.
Referring to Figure 1, Fig. 1 is that the present invention is based on the processes of the preferred embodiment of the volume of mobile terminal setting processing method
Figure, as shown in Figure 1, processing method is arranged in the volume described in the embodiment of the present invention based on mobile terminal, comprising the following steps:
S100 is arranged a volume control item on the screen in advance, adjusts when by the sliding on the volume control item
When saving the volume of mobile terminal, the speed of the control focus movement on control strip is detected.
Specifically, it is illustrated in figure 2 volume control item and illustrates that schematic diagram 1, the volume control item are the square on touch screen
Shape region, the rectangular area by the upper left corner point (x1, y1) and the lower right corner point (x2, y2) determine, then when touch point coordinate (x,
Y) meet x1≤x≤x2 and y1≤y≤y2 then thinks that touch point (x, y) is located on volume control item.
Wherein, as soon as having control focus, the setting method of mobile terminal loudness of the present invention on the volume control item
It is that the position and its movement speed according to the control focus on volume control item set to carry out volume to mobile terminal
It sets.
For " when user is by volume of the sliding to adjust mobile terminal on the volume control item, detection
The speed of control focus movement on control strip " specifically includes:
R1 obtains the position coordinates of the control focus on control strip every set time T;Wherein, set time T, preferably
Ground is chosen 1 second.
R2, with the coordinate of this control focus obtained and the distance between coordinate of control focus of last time acquisition divided by
Set time T(such as 1 second) obtain the movement speed of control focus on control strip;For example, this control focus obtained
Abscissa is xThis, the abscissa for the control focus that last time obtains is xLast time, then the movement speed for controlling focus is | xThis-xLast time|/
T, | xThis-xLast time| indicate xThis-xLast timeAbsolute value.
S200, when the mobile speed of the control focus on control strip is higher than preset First Speed thresholding, 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, comprising:
The movement speed of control focus on control strip obtained in F1, comparison step R2 and preset First Speed
The size of thresholding, if the speed of the control focus movement on control strip is higher than preset First Speed thresholding, into step
Rapid F2;
F2 carries out coarse adjustment to the volume of mobile terminal at this time, obtains the cross of the current position on control strip of control focus
Coordinate 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, figure
3, which show volume control item, illustrates schematic diagram 2, and wherein KMAX is max volume value, and x3-x1 is control focus currently from control strip
The distance of starting point, x2-x1 are the total length of control strip.
S300, when the mobile speed of the control focus on control strip is lower than preset second speed thresholding, for
The volume of mobile terminal uses fine tuning mode.
Specifically, step S300 includes:
The movement speed and preset second speed of control focus on control strip obtained in G1, comparison step R2
The size of thresholding, if the speed of the control focus movement on control strip is lower than preset second speed thresholding, into step
Rapid G2.
G2 carries out fine tuning to the volume of mobile terminal at this time, obtains the cross of the current position on control strip of control focus
Coordinate x3, so that obtaining the volume of the fine tuning of current setting is K2=KSTP*(x3-x1)/(x2-x1) as shown in figure 3, Fig. 3
It show volume control item and illustrates schematic diagram 3, volume adjustable extent when wherein KSTP is fine tuning volume, for example KSTP is
KMAX*10%, x3-x1 are to control focus currently with a distance from control strip starting point, and x2-x1 is the total length of control strip.
S400, then the volume of current mobile terminal is the sum of coarse adjustment result and fine tuning result.That is current mobile terminal
Volume be the sum of coarse adjustment result and fine tuning result, that is, current volume size K3 for K1+K2.
In addition, after the step S400 further include:
When the mobile speed of the control focus on control strip is less than or equal to preset First Speed thresholding, and it is higher than
Or when being equal to preset second speed thresholding, the volume of mobile terminal is not made adjustments.
Therefore a kind of volume setting method based on mobile terminal provided by the invention, the method pass through preparatory
One volume control item is set on the screen, when user adjusts the sound of mobile terminal by the sliding on the volume control item
When measuring size, the speed of the control focus movement on control strip is detected;When the mobile speed of the control focus on control strip is higher than
When preset First Speed thresholding, coarse adjustment mode is used for the volume of mobile terminal;When the control focus on control strip
When mobile speed is lower than preset second speed thresholding, fine tuning mode is used for the volume of mobile terminal;It is then current
The volume of mobile terminal is the sum of coarse adjustment result and fine tuning result.It allows users to by passing through the party in a control strip
The adjusting subtleer for sound size may be implemented in method, meets the growing pursuit for mobile terminal audio, for
It is convenient that family provides, to improve user experience.
Based on above method embodiment, the present invention also provides a kind of, and processing system is arranged in the volume based on mobile terminal,
As shown in figure 5, the system comprises:
Focus velocity measuring module 210, for a volume control item to be arranged on the screen in advance, when user is described in
When volume of the sliding to adjust mobile terminal on volume control item, the speed that the control focus on control strip moves is detected
Degree;As detailed above.
Coarse adjustment computing module 220, for being higher than preset first when the mobile speed of the control focus on control strip
When speed threshold, coarse adjustment mode is used for the volume of mobile terminal;As detailed above.
Fine tuning computing module 230, for being lower than preset second when the mobile speed of the control focus on control strip
When speed threshold, fine tuning mode is used for the volume of mobile terminal;As detailed above.
Volume computing module 240, the volume for then current mobile terminal are the sum of coarse adjustment result and fine tuning result;
As detailed above.
In conclusion the volume setting processing method and mobile terminal provided by the present invention based on mobile terminal, described
Method by being arranged a volume control item on the screen in advance, when user is adjusted by the sliding on the volume control item
When the volume of mobile terminal, the speed of the control focus movement on control strip is detected;When the control focus on control strip is moved
When dynamic speed is higher than preset First Speed thresholding, coarse adjustment mode is used for the volume of mobile terminal;Work as control strip
On control focus mobile speed when being lower than preset second speed thresholding, fine tuning is used for the volume of mobile terminal
Mode;Then the volume of current mobile terminal is the sum of coarse adjustment result and fine tuning result.It allows users to by being controlled at one
The adjusting subtleer for sound size may be implemented by this method for item processed, meet growing for mobile terminal audio
Pursuit, provide users with the convenient.
Certainly, those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method,
It is that related hardware (such as processor, controller etc.) can be instructed to complete by computer program, the program can store
In a computer-readable storage medium, which may include the process such as above-mentioned each method embodiment when being executed.Its
Described in storage medium can be for memory, magnetic disk, CD etc..
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.