Specific embodiment
Technical scheme is further illustrated below in conjunction with Figure of description and specific embodiment.It should be appreciated that thisThe described specific embodiment in place is not intended to limit the present invention only to explain the present invention.
With reference to Fig. 1, the embodiment of player method one of terminal tone of the present invention is proposed.The broadcasting side of the present embodiment terminal toneMethod is comprised the following steps:
Step S110, when detecting tone trigger event, obtain the corresponding tone of tone trigger event;
The tone trigger event includes calling event, short message event, quarter-bell event, switching on and shutting down event etc..First, terminalThere is provided the customization function of tone, user can make or download the tone oneself liked, to be set to differenceContact person incoming call or tone during note, or the tone of alarm clock, or the tone of switching on and shutting down etc..Then terminalBy detecting real-time tone trigger event, and when tone trigger event is detected, obtain what tone trigger event was correspondingly arrangedTone.Certainly, the tone that the tone can also be carried for the system of terminal.In addition, the corresponding tone of tone trigger event can be withFor one or more.
Step S120, judge the playing duration of the tone whether less than preset time;It is to proceed to step S130, otherwiseProceed to step S140;
The preset time when terminal detects tone trigger event, is first judged that tone trigger event is corresponding by terminalWhether the playing duration of tone is less than the preset time.Then processed accordingly further according to judged result.If tone is triggeredWhen the corresponding tone of event is two or more, then whether the playing duration sum of the corresponding all tones of tone trigger event is judgedLess than the preset time.
Step S130, the control terminal tone as described in loop play mode playback;
When the playing duration of the corresponding tone of the tone trigger event is less than preset time, control terminal is broadcast by circulationMode playback plays the tone.When the corresponding tone of tone trigger event be one when, then can play the tone at the end of,The starting point for returning again to the tone is replayed, and the volume of the tone for repeating playing every time will gradually increase.Work as bellWhen the corresponding tone of sound trigger event is two or more, for example, the corresponding tone of tone trigger event is tone 1, tone 2 and bellSound 3, then can successively play the tone 1, tone 2 and tone 3 with control terminal.And at the end of the broadcasting of tone 3, then returnThe starting point of ring-back tone 1 is replayed, and the volume of the tone for repeating playing every time will gradually increase.
Step S140, control terminal press normal mode and play the tone.
When the playing duration of the corresponding tone of the tone trigger event is more than or equal to preset time, then control terminalThe tone is played, and the volume of the tone played will be incremented by.For example, can play with the reproduction time t of tone as intervalThe volume of tone gradually increase.
Can also include after above-mentioned steps S130 and step S140:
Step S150, detect play halt instruction when, then control terminal stops playing the tone.
Play the instruction produced when halt instruction can be user response tone trigger event.For example, during incoming call, thenTrigger the tone set by the incoming call event to play out, and when user answers the calling or refuses the calling, willProduce and play halt instruction, stop playing the tone with control terminal.Playing halt instruction can also be for tone trigger event certainlyThe time of body has arrived at.For example, the incoming call event corresponding time is 150 seconds, when the corresponding bell of incoming call eventWhen the time that sound is played reaches 150 seconds, then produce and play halt instruction, stop playing the tone with control terminal.
The embodiment of the present invention by detecting tone trigger event, and its corresponding tone playing duration less than presetDuring the time, the control terminal loop play tone, it is achieved thereby that the loop play of tone, simplifies the operation of tone settingJourney.
With reference to Fig. 2, the invention provides the embodiment of playing device one of terminal tone.The terminal tone of the embodiment is broadcastPutting device includes:
Detecting module 110, for detecting during tone trigger event, obtains the corresponding tone of tone trigger event;
Control module 120, for when the playing duration of the ringtone file is less than preset time, control terminal to be by circulationPlay mode plays the tone;When the playing duration of the ringtone file is more than or equal to preset time, control terminal is by justTone described in normal mode playback.
Above-mentioned tone trigger event includes calling event, short message event, quarter-bell event, switching on and shutting down event etc..First, eventuallyEnd needs the customization function for providing tone, and user can make or download the tone oneself liked, to be set toThe tone when incoming call or note of different contact persons, or the tone of alarm clock, or the tone of switching on and shutting down etc..ThenDetecting module 110 obtains tone trigger event pair by detecting real-time tone trigger event, and when tone trigger event is detectedThe tone that should be set.Certainly, the tone that the tone can also be carried for the system of terminal.In addition, tone trigger event correspondenceTone can be one or more.
Terminal by the preset time, when detecting module 110 detects tone trigger event, will first sentence by control module 120Whether the playing duration of the corresponding tone of disconnected tone trigger event is less than the preset time.Then phase is carried out further according to judged resultThe process answered.If the corresponding tone of tone trigger event is two or more, the corresponding all bells of tone trigger event are judgedWhether the playing duration sum of sound is less than the preset time.
When the playing duration of the corresponding tone of the tone trigger event is less than preset time, control module 120 is controlledTerminal tone as described in loop play mode playback.When the corresponding tone of tone trigger event is one, then can playAt the end of the tone, the starting point for returning again to the tone is replayed, and the volume of the tone for repeating playing every time willGradually increase.When the corresponding tone of tone trigger event is two or more, for example, the corresponding tone of tone trigger event is bellSound 1, tone 2 and tone 3, then can successively play the tone 1, tone 2 and tone 3 with control terminal.And broadcasting in tone 3At the end of putting, the starting point for returning again to tone 1 is replayed, and the volume of the tone for repeating playing every time will gradually increaseGreatly.
When the playing duration of the corresponding tone of the tone trigger event is more than or equal to preset time, then control module120 control terminals play the tone, and the volume of the tone played will be incremented by.For example, can be with the reproduction time t of toneTo be spaced, the volume of the tone of broadcasting gradually increases.
Above-mentioned control module 120 is additionally operable to:When broadcasting halt instruction is detected, then control terminal stops playing the bellSound.The instruction that the broadcasting halt instruction is produced when can be user response tone trigger event.For example, during incoming call, then touchSend out the tone set by the incoming call event to play out, and when user answers the calling or refuses the calling, will produceIt is raw to play halt instruction, stop playing the tone with control terminal.It can also be tone trigger event itself to play halt instructionTime have arrived at.For example, the incoming call event corresponding time is 150 seconds, when the corresponding tone of incoming call eventWhen the time of broadcasting reaches 150 seconds, then produce and play halt instruction, stop playing the tone with control terminal.
The embodiment of the present invention by detecting tone trigger event, and its corresponding tone playing duration less than presetDuring the time, the control terminal loop play tone, it is achieved thereby that the loop play of tone, simplifies the operation of tone settingJourney.
The preferred embodiments of the present invention are the foregoing is only, its scope of the claims is not thereby limited, it is every using the present inventionEquivalent structure or equivalent flow conversion that description and accompanying drawing content are made, are directly or indirectly used in other related technology necksDomain, is included within the scope of the present invention.