1. Technical Field
The present disclosure relates to audio playback devices and methods for controlling the audio playback devices and, particularly, to an audio playback device for conveniently controlling playing process of the audio playback device and a method.
2. Description of Related Art
A conventional audio playback device is activated to select desired audio file to playback audio files in response to input by a user on mechanical buttons of the audio playback device or touch input on a touch screen of the audio playback device. However, if the mechanical buttons are used to select a desired audio file, the user must press the buttons continuously until the desired audio file is found, which is time consuming to operate. If touch input on the touch screen is used to select the desired audio file, a touch on the touch screen only makes the user review the audio files listed in the playlist, the user should select the desired audio file from the playlist displayed in the touch screen manually. It is desired for an audio playback device to overcome the above shortcomings.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
The embodiments of the present disclosure are described in detail, with reference to the accompanying drawings.
Referring to
The storage unit 20 stores audio files, general information associated with each of the audio files, and application programs running on the audio play device 1. The general information of each audio file may include a singers name, an audio file title, a document size, play time, and a music style. In the embodiment, the general information of each audio file further includes a number for recording an order position of the audio file stored in the storage unit 20 or in an audio folder stored in the storage unit 20. For example, if an order position of an audio file titled “You Are Not Alone”, stored in the storage unit 20 or in the audio folder is 26, the number of the audio file is 26 too.
Referring to
The associating module 32 is to associate the position of the scroll block 12 in the scroll bar 11 with the audio files stored in the storage unit 20 or in the audio folder. In a first embodiment, the associating module 32 divides the scroll bar 11 into a number of parts according to the total number of the audio files, and associates each part of scroll bar 11 where the scroll block 12 is operable to move from one part to the nearest next one to select the next audio file in a sequence. For example, when the total number of the audio files is 100, the associating module 32 divides the scroll bar 11 into 100 parts. Associates each part with one audio file in sequence, thus the scroll block 12 at the first part of the scroll bar 11 corresponds to the audio file whose number is 1, and the scroll block 12 at the last part of the scroll bar 11 corresponds to the audio file whose number is 100.
In a second embodiment, the associating module 32 divides the scroll bar 11 into a number of parts according to a preset distance and the length of the scroll bar 11. Divides the number of each audio file by the number of parts to determine a remainder, which is used to determine which part of the scroll bar lithe audio file is associated with. Then associates each part of scroll bar 11 where the scroll block 12 is located with audio files in sequence according to the determined reminder. For example, when the preset distance is 1 cm and the length of the scroll bar 11 is 10 cm, the associating module 32 divides the scroll bar 11 into 10 parts. Thus, the audio file whose number is 1 is associated with the first part of the scroll bar 11, the audio file whose number is 10 is associated with the tenth part of the scroll bar 11, the audio file whose number is 11 is associated with the first part of the scroll bar 11.
The touch detection module 33 is to detect whether the scroll block 12 is double clicked or dragged. When the touch detection module 33 detects that the scroll block 12 is double clicked, the executing module 34 switches the state of the audio playback device 1 between a playing state and a stop state. That is, when the audio playback device 1 is playing an audio file, if the double click on the scroll block 12 is detected, the executing module 34 stops playing the audio file and switches the playing state of the audio playback device 1 to the stop state. When the audio playback device 1 is in the stop state, if the double click on the scroll block 12 is detected, the executing module 34 playing the audio file to switch the audio playback device 1 to the playing state.
When the touch detection module 33 detects that the scroll block 12 is dragged, the executing module 34 at least determines the position of the scroll block 12 in the scroll bar 11, and selects one audio file at least according to the determined position of the scroll block 12 in the scroll bar 11. In the first embodiment, the executing module 34 determines which part of the scroll bar 11 the scroll block 12 is located in, and selects the audio file associated with the determined part of the scroll bar 11. In the second embodiment, the executing module 34 determines the times that the scrolled block 12 is dragged from the head of the scroll bar 11 to the end of the scroll bar 11 and which part of the scroll bar 11 the scroll block 12 is located in to select the audio file.
In the embodiment, the executing module 34 further marks the selected audio file. The selected audio file can be marked by highlighting the selected audio file, displaying a frame around the selected audio file, or displaying a cursor on the selected audio file.
In the embodiment, when the executing module 34 selects one audio file in response to the operation of the user, the display control module 31 further controls the touch screen 10 to display the general information associated with the selected audio file. The information associated with the selected audio file can be displayed above the playlist, below the playlist, or other appropriate portions of the touch screen 10.
In the embodiment, the executing module 34 further plays the selected audio file when the touched scroll block 12 is released.
Referring to
In step S401, the display control module 31 controls the touch screen 10 to display the playlist and the scroll bar 11. The scroll bar 11 includes a scroll block 12 for operating.
In step S402, the associating module 32 associates the position of the scroll block 12 in the scroll bar 11 with the audio files. In the first embodiment, the associating module 32 divides the scroll bar 11 into a number of parts according to the total number of the audio files, and associates each parts of the scroll bar 11 where the scroll block 12 is located with one audio file in sequence. In the second embodiment, the associating module 32 divides the scroll bar 11 into a number of parts according to the preset distance and the length of the scroll bar 11. Divides the number of each audio file by the number of the parts to determine the remainder, which is used to determine which part of the scroll bar 11 is associated with which pat of the audio file. In addition, associates each part of the scroll bar 11 where the scroll block 12 is located with audio files in sequence according to the determined reminder.
In step S403, the touch detection module 33 detects whether the scroll block 12 is double clicked or dragged. When the scroll block 12 is dragged, the procedure goes to step S404. When the scroll block 12 is double clicked, the procedure goes to step S405.
In step S404, the executing module 34 at least determines the position of the scroll block 12 in the scroll bar 11, and selects one audio file at least according to the determined position of the scroll block 12 in the scroll bar 11. In the first embodiment, the executing module 34 determines which part of the scroll bar 11 the scroll block 12 is located in, and selects one audio file associated with the determined part of the scroll bar 11. In the second embodiment, the executing module 34 determines the time(s) that the scroll block 12 is dragged from the head of the scroll bar 11 to the end of the scroll bar 11 and which part of the scroll bar 11 the scroll block 12 is located in to select the audio file.
In step S405, the executing module 34 switches the state of the audio playback device 1 between the playing state and the stop state.
Although the present disclosure has been specifically described on the basis of the exemplary embodiment thereof, the disclosure 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 disclosure.
Number | Date | Country | Kind |
---|---|---|---|
100141147 | Nov 2011 | TW | national |