A kind of method of television set editor startup music and can edit the television set of startup music
Technical field
The present invention relates to technical field of television sets, particularly relate to a kind of method of television set editor startup music and can edit the television set of startup music.
Background technology
Television set is one of a kind of and the closely bound up and indispensable household electronic products of daily life, becomes the recreation center of family life just gradually.Along with the fast development of Chinese national economy, the fast development of the significantly raising, particularly TV tech of living standards of the people, television function as has increased multi-media player function, function of surfing the Net etc. newly also from strength to strength.Television set is when its function grow is big, its system also becomes and becomes increasingly complex, it is increasing that program code also becomes, load the time lengthening of code when not only starting shooting, and initialization also will spend the longer time, the time that causes starting shooting often reaches tens seconds, and have only start-up picture mostly in the existing television set and do not have music, and start-up picture is fixed, and has only the minority start-up picture to upgrade, and this has just caused the user often to have the fidgets in the very long available machine time and be helpless.Certainly, in the existing television set, also there is only a few to be provided with startup music, but owing to the setting of startup music all just defines in advance, be that the song that the user can't select oneself to like is used as new startup music, cause the user to be fed up with a kind of startup music because of long-term listening easily.
Summary of the invention
The objective of the invention is to overcome the deficiency of prior art, a kind of method of television set editor startup music is provided and can edits the television set of startup music, make and in the television startup process, can play startup music and can at any time startup music be edited according to user's personal like.
The technical solution adopted for the present invention to solve the technical problems is: a kind of method of television set editor startup music comprises the editing process of startup music and the playing process of startup music:
At the editing process of startup music, it comprises the steps:
A. setting in advance one in the memory of television internal is used for storing between first memory block of startup music;
B. the input control device of television set is exported the instruction of opening the television internal media player to the primary processor of television set:
C. described media renderer plays comes from USB interface or comes from the online music data of network;
D. in the playing process of music, the primary processor of television set is accepted to come from input control device playing back music starting point and end point is provided with instruction with selected music segments;
E. the primary processor of television set control music encoding device carries out the code storage processing to described music segments, and judge whether enough store described music segments data between described first memory block, exceed described first storage during interval space in the music segments data, the part that then only intercepts this music segments and do not exceeded;
At the playing process of startup music, it comprises the steps:
F. the primary processor of television set is controlled media player, makes the music segments data of media player in can calling between first memory block that is stored in the television internal memory after start automatically;
G. media player is play the music segments that reads, and decoded data are exported to primary processor, signal after primary processor will be handled is delivered to audio power amplifier and is play by loudspeaker, MUTE pin to audio power amplifier carries out sequencing control simultaneously, makes loudspeaker emit startup music in the time that sets.
Described input control device is TV remote controller and is located at remote control receiving-member in the television set.
Described input control device is the button of controlling that is arranged on the television set.
Code storage processing procedure among the described step e comprises the steps:
E1. the primary processor initializes memory address pointer of television set; The primary processor initialization codes timer of television set; The primary processor of television set is according to music segments calculation code time span;
E2. WatchDog Timer resets;
E3. the control of accepting primary processor of the music encoding device of television set is stored the data slot of music segments into address pointer specified position;
E4. the primary processor of television set is revised memory address pointer;
E5. the primary processor of television set judges whether the space between first memory block of memory uses up; Be judged as is to go to step e7; Be judged as not, then continue next step;
E6. the primary processor of television set judges whether the coding timer surpasses scramble time length; Be judged as is to continue next step; Be judged as not, then go to step e2;
E7. the code storage processing procedure finishes; Withdraw from.
The processing procedure of the primary processor in the described step g comprises the steps:
G1. the primary processor of television set judges whether the user opens the startup music function; Be judged as is to continue next step; Be judged as not, then go to step g 6;
G2. the primary processor of television set music segments data that media player is defeated by are temporarily stored in the internal memory of television set;
G3. the primary processor of television set judges whether music data is effective; Be judged as is to continue next step; Be judged as not, then go to step g 6;
G4. the primary processor of television set reads a fragment music data and delivers to audio power amplifier and play by loudspeaker from internal memory;
G5. the primary processor of television set judges whether the music segments data run through in the internal memory; Be judged as is to continue next step; Be judged as not, then go to step g 4;
G6. enter follow-up normal startup.
A kind of television set of editing startup music comprises media player, primary processor, input control device, internal memory, memory, music encoding device, audio power amplifier and loudspeaker; Media player is connected with primary processor, and the former handles coming from USB interface or coming from the online music data of network, and the signal after will handling is exported to the latter; The output of input control device is connected to primary processor, and the former exports to the latter and sets or control signal; Primary processor is connected with internal memory, and the latter is used to store the data of the former operation; The output of primary processor is connected to audio power amplifier and the MUTE pin of audio power amplifier is carried out sequencing control; The output of audio power amplifier is connected to loudspeaker; The output of primary processor is connected to the music encoding device, and the former exports control signal to the latter; The output of music encoding device is connected to memory, and the former deposits the music encoding data to the latter; Media player is connected with memory, and the former transfers the latter's music encoding data and plays.
A kind of television set of editing startup music of the present invention can be play startup music in start process, simultaneously, this startup music also can be edited at any time according to user's personal like.The source of startup music can be that the USB interface by television set reads by the music data of storing in the USB flash disk, and the music data in the USB flash disk then can be downloaded or unloading obtains by online computing.For the television set that can directly surf the Net, can also obtain music data by network.In television set, be built-in with media player, so that can realize music, such as, play music data, for another example playing network Online Music etc. by USB flash disk that USB interface is pegged graft.In playing back music, the user can select startup music according to the hobby of oneself.During selection, the user only needs by input control device such as the button of controlling on remote controller or the television set, the starting point and the end point of music are set, the primary processor of television set will be controlled music encoding device in the television set and selected this section music is carried out recompile and deposit in the memory, the primary processor of television set can be controlled media player again and accesses this section music play from memory during start, promptly produces startup music.
The invention has the beneficial effects as follows, owing to adopted the media renderer plays of television internal to come from USB interface or come from the online music data of network, in the playing back music process, the primary processor of television set is accepted to come from input control device playing back music starting point and end point is provided with instruction with selected music segments, the music encoding device then is subjected to the control of television set primary processor that music segments is carried out code storage to handle, when television startup, media player is subjected to the control of primary processor to access this section music automatically from memory to play, thereby formed startup music, make television set that music be arranged in start process, the agitation that the user felt and the generation of helpless phenomenon have been avoided in the very long available machine time, particularly this startup music can be edited and be provided with according to the hobby of oneself by the user, song that the user can oneself like or baby's sound are set to startup music, the user can enjoy the music tone ringer of oneself editing in person during start, do not need helpless wait, be full of family's breath, also represented individual character.
Below in conjunction with drawings and Examples the present invention is described in further detail; But the method for a kind of television set editor startup music of the present invention and the television set that can edit startup music are not limited to embodiment.
Description of drawings
Fig. 1 is a hardware block diagram of the present invention;
Fig. 2 is the code storage process flowchart of the inventive method;
Fig. 3 is playback process process (startup music decoding) flow chart of the inventive method.
Embodiment
Shown in accompanying drawing, the method of a kind of television set editor startup music of the present invention, be to realize that this television set that can edit startup music comprises media player 1, primary processor 2, input control device 3, internal memory 4, memory 5, music encoding device 6, audio power amplifier 7 and loudspeaker 8 including on the television set of following hardware configuration; Media player 1 is connected with primary processor 2, and the former handles coming from USB interface or coming from the online music data of network, and the signal after will handling is exported to the latter; The output of input control device 3 is connected to primary processor 2, and the former exports to the latter and sets or control signal; Primary processor 2 is connected with internal memory 4, and the latter is used to store the data of the former operation; The output of primary processor 2 is connected to audio power amplifier 7 and the MUTE pin of audio power amplifier is carried out sequencing control; The output of audio power amplifier 7 is connected to loudspeaker 8; The output of primary processor 2 is connected to music encoding device 6, and the former exports control signal to the latter; The output of music encoding device 6 is connected to memory 5, and the former deposits the music encoding data to the latter; Media player 1 is connected with memory 5, and the former transfers the latter's music encoding data and plays.
A kind of television set of editing startup music of the present invention can be play startup music in start process, simultaneously, this startup music also can be edited at any time according to user's personal like.The source of startup music can be that the USB interface by television set reads by the music data of storing in the USB flash disk, and the music data in the USB flash disk then can be downloaded or unloading obtains by online computing.For the television set that can directly surf the Net, can also obtain music data by network.In television set, be built-in with media player 1, so that can realize music, such as, play music data, for another example playing network Online Music etc. by USB flash disk that USB interface is pegged graft.In playing back music, the user can select startup music according to the hobby of oneself.During selection, the user only needs by input control device 3 such as the button of controlling on remote controller or the television set, the starting point and the end point of music are set, the primary processor 2 of television set will be controlled 6 pairs of selected this section music of music encoding device in the television set and carry out recompile and deposit in the memory 5, the primary processor 2 of television set can be controlled media player 1 again and accesses this section music play from memory 5 during start, promptly produces startup music.
The method of a kind of television set editor startup music of the present invention comprises the editing process of startup music and the playing process of startup music:
At the editing process of startup music, it comprises the steps:
Step a. sets in advance one and is used for storing between first memory block of startup music in the memory 5 of television internal;
The instruction that the input control device 3 of step b. television set is opened television internal media player 1 to primary processor 2 outputs of television set;
The described media player 1 of step c is play and is come from USB interface or come from the online music data of network;
Steps d. in the playing process of music, what the primary processor of television set 2 accepted to come from 3 pairs of playing back music starting points of input control device and end point is provided with instruction with selected music segments;
6 pairs of described music segments of primary processor 2 control music encoding devices of step e. television set are carried out code storage and are handled, and judge whether enough store described music segments data between described first memory block, exceed described first storage during interval space in the music segments data, the part that then only intercepts this music segments and do not exceeded;
At the playing process of startup music, it comprises the steps:
2 pairs of media players 1 of the primary processor of step f. television set are controlled, and make the music segments data of media player 1 in can calling between first memory block that is stored in television internal memory 5 after start automatically;
Step g. media player 1 is play the music segments that reads, and decoded data are exported to primary processor 2, signal after primary processor 2 will be handled is delivered to audio power amplifier 7 and is play by loudspeaker 8, MUTE pin to audio power amplifier 7 carries out sequencing control simultaneously, makes loudspeaker 8 emit startup music in the time that sets.
Wherein:
Input control device 3 can and be located at remote control receiving-member in the television set for TV remote controller; Input control device 3 also can be for being arranged on the button of controlling on the television set.
As shown in Figure 2, the code storage processing procedure among the step e comprises the steps:
The primary processor 2 initializes memory address pointers of step e1. television set; The primary processor 2 initialization codes timers of television set; The primary processor 2 of television set is according to music segments calculation code time span; Shown in the frame among Fig. 2 201;
The step e2. WatchDog Timer that resets; Shown in the frame among Fig. 2 202;
The music encoding device 6 of step e3. television set is accepted the control of primary processor 2 data slot of music segments is stored into the specified position of address pointer; Shown in the frame among Fig. 2 203;
The primary processor 2 of step e4. television set is revised memory address pointer; Shown in the frame among Fig. 2 204;
The primary processor 2 of step e5. television set judges whether the space between first memory block of memory 5 uses up; Shown in the frame among Fig. 2 205; Be judged as is to go to step e7; Be judged as not, then continue next step;
The primary processor 2 of step e6. television set judges whether the coding timer surpasses scramble time length; Shown in the frame among Fig. 2 206; Be judged as is to continue next step; Be judged as not, then go to step e2;
Step e7. code storage processing procedure finishes; Withdraw from; Shown in the frame among Fig. 2 207.
As shown in Figure 3, in the step g primary processor processing procedure comprise the steps:
The primary processor 2 of step g 1. television sets judges whether the user opens the startup music function; Be judged as is to continue next step; Be judged as not, then go to step g 6; Shown in the frame among Fig. 3 301;
The music segments data that the primary processor 2 of step g 2. television sets is defeated by media player 1 are temporarily stored in the internal memory 4 of television set; Shown in the frame among Fig. 3 302;
The primary processor 2 of step g 3. television sets judges whether music data is effective; Shown in the frame among Fig. 3 303; Be judged as is to continue next step; Be judged as not, then go to step g 6;
The primary processor 2 of step g 4. television sets reads a fragment music data and delivers to audio power amplifier 7 and play by loudspeaker 8 from internal memory; Shown in the frame among Fig. 3 304;
The primary processor of step g 5. television sets judges whether the music segments data run through in the internal memory; Shown in the frame among Fig. 3 305; Be judged as is to continue next step; Be judged as not, then go to step g 4;
Step g 6. enters follow-up normal startup; Shown in the frame among Fig. 3 306.
The foregoing description only is used for further specifying the method for a kind of television set editor startup music of the present invention and can edits the television set of startup music; but the present invention is not limited to embodiment; every foundation technical spirit of the present invention all falls in the protection range of technical solution of the present invention any simple modification, equivalent variations and modification that above embodiment did.