The audio player 100 is further equipped with a display unit 5 and a control panel 6. When the audio player 100 plays the multimedia files, the display unit 5 shows metadata of the played multimedia files that correspond to the selected audio output port(s) one after the other. For example, when an audio output port 9 is selected, the display unit 5 only shows a piece of metadata of the played multimedia file corresponding to the selected audio output port 9. When multiple audio output ports 9 are selected, for example, three audio output ports 9, the display unit 5 shows three pieces of metadata of the played multimedia files corresponding to the selected audio output ports 9 one by one. The control panel 6 is configured for generating instructions when receiving a user input. Referring to
Each of the port selection keys 62 is assigned with a port ID and a specified output channel that is identified/assigned with an identification code. When the audio player 100 is turned off, each of the port selection keys 62 can be used as a switch for turning on the audio player 100 for music play. That is, each of the port selection keys 62 is configured for generating a signal to activate a processing unit 10 (see
The control buttons 64 include, but not limited to, a foremost button 64a, an aftermost button 64f, a forward button 64e, a backward button 64b, a stop button 64c, a play/pause button 64d, and a volume adjustment button 64g. During listening to music, the user can press the control buttons 64 to reset the play parameters after pressing a corresponding port selection key 62. That is, during playing the multimedia files, the processing unit 10 determines which output channel is selected according to the pressed port selection key 62, and reset the associated play parameters corresponding to the determined output channel according to the control buttons 64.
The foremost button 64a is configured for activating the processing unit 10 to play a multimedia file which is listed firstly on a playlist, while theaftermost button 64f is configured for activating the processing unit 10 to play a multimedia file which is listed lastly on the playlist. The forward button 64e and the backward button 64b are configured for activating the processing unit 10 to play a next multimedia file and a previous multimedia file respectively. The stop button 64c is configured for activating the processing unit 10 to stop playing the multimedia file. The play/pause button 64d is configured for activating the processing unit 10 to play or pause the multimedia file. The volume adjustment button 64g is configured for increasing or decreasing volume output of the multimedia file.
Each of the codecs 7 is connected with the processing unit 10 and one of the amplifiers 8, and each of the amplifiers 8 is further connected with one of the audio output ports 9. In other words, one of the codecs 7, amplifiers 8, and audio output ports 9 make up one output channel for outputting the multimedia files. Further, each of the codecs 7 is assigned with the identification code that can be also used and regarded as the identification code of the corresponding output channel.
When one of the port selection keys 62 is selected, the processing unit 10 identifies the selected port selection key 62 according to the port ID, and selects the corresponding output channel for outputting the multimedia files according to the identification code assigned to the identified port selection key 62, thereby establishing the corresponding process for outputting the multimedia files.
That is, the processing unit 10 obtains corresponding play parameters associated with the established process from the storage device 3 according to the process ID of the established process, and temporarily stores the obtained play parameters in an random access memory (RAM) 4. The processing unit 10 further selects a corresponding codec 7, amplifier 8, and audio output port 9 (namely the corresponding output channel) according to the identification code associated with the selected port selection key 62, and controls playback of the multimedia files according to the obtained play parameters.
When another one of the port selection keys 62 is selected while the audio player 100 is playing the multimedia files (namely where the audio player 100 has a running process playing the multimedia files), the processing unit 10 establishes a new process corresponding to the new selected port selection key 62, and controls performance of these processes (e.g., the running process and the new process) according to time division multiplexing (TDM) technology.
In addition, the audio player 100 further provides a predetermined time for setting the play parameters after a selection operation of one of the port selection keys 62. That is, after one of the port selection keys 62 is selected, the processing unit 10 updates the corresponding play parameters in response to the user's operations (e.g., volume adjustment operation, multimedia file selection operation, etc.) on the control panel 6 in the predetermined time. In other words, when the user's operations are performed after the predetermined time, the processing unit 10 has no response to the user's operations.
In step S2, the processing unit 10 receives the instructions generated from the control panel 6.
In step S3, the processing unit 10 processes the received instructions. For example, the processing unit 10 identifies the selected port selection key(s) 62 according to the port ID(s) and establishes the corresponding process(es) for playing the multimedia files.
In step S4, the processing unit 10 obtains the corresponding parameters associated with one of the established process(es) from the storage device 3, and temporarily stores the obtained play parameters in the RAM 4. In addition, if there are instructions for setting the play parameters following the instruction corresponding to the selection operation of one of the port selection keys 62, the processing unit 10 updates the play parameters in the RAM 4.
In step S5, the processing unit 10 selects the corresponding codec 7, amplifier 8, and audio output port 9 (namely the corresponding output channel) for outputting the corresponding multimedia files according to the identification code assigned to the established process.
In step S6, the processing unit 10 controls the selected codec 7, amplifier 8, and audio output port 9 to output the corresponding multimedia files according to the corresponding play parameters. The processing unit 10 further updates the corresponding play parameters (e.g., the flag indicating which multimedia files is ready to be played) after finishing playing a multimedia file.
In step S7, the processing unit 10 repeats the aforementioned steps S4-S6 to perform other established process(es) according to the TDM technology.
In step S8, when one of the established process(es) is terminated, the processing unit 10 obtains the play parameters of the terminated process and updates the play parameters in the storage device3 with the obtained play parameters from the RAM 4.
In step S9, when the audio player 100 is terminated, the processing unit 10 obtains the corresponding play parameters of the running process(es), and updates the corresponding play parameters in the storage device 3 with the obtained play parameters from the RAM 4 respectively.
The above performance of the steps S2-S9 is under the control of the control program.
Although the present invention has been specifically described on the basis of a preferred embodiment including a preferred method thereof, the invention is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment including the method without departing from the scope and spirit of the invention.
Number | Date | Country | Kind |
---|---|---|---|
200610200871.3 | Sep 2006 | CN | national |