1. Technical Field
The present disclosure relates to an electronic audio playing apparatus and a method thereof.
2. Description of Related Art
Generally, audio files can only be played from the beginning. Electronic playing apparatuses such as MP3 players only provide a skipping operation for users to advance or reverse to a next audio file.
Therefore, what is needed is an electronic audio playing apparatus and method that allows a user to start at any desired point in an audio file.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the electronic audio playing apparatus and the method thereof. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
The CPU 12 includes an audio retrieving module 121, an audio sending module 122, an input receiving module 123, a section determining module 124, and a skipping module 125. The audio retrieving module 121 is for retrieving the audio file 111 in the data storage 11. The audio sending module 122 is for transmitting the audio file 111 to the decoder 13 for decoding. The decoded audio file 111 is output from the audio output unit 14. The input receiving module 123 is for receiving and determining which, if any, skipping commands are received from the input unit 15 during play of the main part 21 of the audio file 111. In this embodiment, skipping commands include skip forward to next section, skip backward to previous section, skip-to-first section, and skip-to-last section. If one of the skipping commands is received from the input unit 15, the section determining module 124 determines which section to skip to, namely, a desired section.
In the exemplary embodiment, the input unit 15 is configured with a plurality of section skipping buttons respectively associated with the skipping commands.
In the exemplary embodiment, the audio sending module 122 records the ID number of the section of the audio file 111 currently being played. Accordingly, the section determining module 124 determines the desired section according to the ID number of section currently being played and the received skipping commands. For example, supposing the ID number of the section currently being played is “2,” and the skipping command from the input unit 15 is a “skip forward to next section” command, the section determining module 124 determines the ID number of the desired section is “3.”
In another exemplary embodiment, the skipping commands further comprises a “skip to desired section” command which is that the user directly input the ID number of the desired section through the input unit 15. Therefore, the section determining module 124 directly receives and recognizes the ID number of the desired section input by the user.
The skipping module 125 obtains the starting address of the desired section from the control part 21 according to the ID number thereof and notifies the audio sending module 122 to transmit the audio file 111 to the decoder 13 from the obtained starting address. For example, if the ID number of the desired section is “3,” the skipping module 125 obtains the starting address from the control point whose ID number is “3’ in control part 21, and notifies the audio sending module 122 to transmit the audio file 111 to decoder 13 beginning from the obtained starting address.
If the determined ID number of the desired section is greater than the total number of the sections of the main audio part 22, the section determining module 124 takes the last section of the main audio part 22 as the desired section. After the last section of the main audio part 22 is played, the audio file retrieving module 121 achieves another audio file 111 next to the audio file 111 just played to play.
In step S402, the audio sending module 122 transmits the audio file 111 to the decoder 13 for decoding and the audio output unit 14 outputs the audio file 111 decoded by the decoder 13.
In step S403, the input receiving module 123 receives and determines which, if any, skipping command is received from the input unit 15 during play of the main part 21 of the audio file 111 .
In step S404, if one of skipping command is received from the input unit 15, the section determining module 124 determines the desired section.
In step S405, the skipping module 125 obtains the starting address of the desired section according to the ID number of the desired section from the control point of the control part 21.
In step S406, the skipping module 125 notices the audio sending module 122 to transmit the audio file 111 to decoder 13 from the obtained starting address.
Although the present disclosure has been specifically described on the basis of preferred embodiments, the invention is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the invention.
Number | Date | Country | Kind |
---|---|---|---|
200910300246.X | Jan 2009 | CN | national |